Translation management system

ABSTRACT

A translation management system in a computer environment. A preferred embodiment of the invention automatically detects when a document, data stream, or non-text file in the master language has been updated and notifies the user which corresponding documents, data streams, or non-text files in the other languages require translation which are then staged and dynamically routed and sequenced to individual translation resources where the actual translation is performed. Management status, reporting, scheduling, and accounting information is sent to the user as the translation process ensues. The user is notified of the completion of translation and the invention coordinates the delivery of the translated documents, data streams, or non-text files back to the user&#39;s site for installation and optional review. The invention makes a variety of translation resources instantly available to the user which include both automated translation tools as well as human translators. The translation resources are connected to the invention using a flexible architecture that can be deployed on intranets as well as the Internet.

TECHNICAL FIELD

[0001] The invention relates to the multilingual translation of documents in a computer environment. More particularly, the invention relates to the management of monolingual documents, data streams, non-text files, and databases to enable their translation into target languages in a computer environment.

DESCRIPTION OF THE PRIOR ART

[0002] The surge of growth in Internet access across the world has created the need for multilingual Web sites. The majority of Web sites are created in English which creates a problem for non-English speaking Internet users. This also creates a problem for Web site managers that maintain Web sites that are, or attempt to be, multilingual. The Web site content must be constantly maintained to be up to date and synchronized in all of the languages supported by the Web site.

[0003] One approach is shown in PCT International Publication Number WO97/18516 of Flanagan et al., published on May 22, 1997. This application integrates a machine translator in the end user's Web browser. The user selects the desired target language and the Web document retrieved by the browser is then translated by the machine translator. Unfortunately, errors occur in the translation and the appropriate content is not consistently displayed to the user.

[0004] An alternative implementation in the above application places pre-translated Web pages on a Web server. The Web server stores all of the translated Web pages locally. The Web site visitor sends a request to the Web server for a page in a specific language. The Web server searches for the pre-translated page that has been stored locally and sends it to the Web visitor's Web browser. This creates a storage and file management problem on the Web server because of the duplication of each entire page of the Web site.

[0005] Some search engines on the Internet offer an option to translate the hits that come back from a search query into different languages. The user initiates the translation through a menu selection. The translation is performed automatically by machine.

[0006] Japanese Pat. No. 9-114852 is a method for a search unit which takes a search string in a second foreign language and translates it into a first foreign language. The translated search string is used to search the original document which is in the first foreign language.

[0007] Japanese Pat. No. 9-44502 is a method wherein a document in a first foreign language is translated into a second foreign language. The two documents are then displayed separately or together through a user interface.

[0008] European Pat. No. 0376741 B1 issued to Francisco on Oct. 18, 1995, is a method for displaying error messages on a document collating and envelope stuffing machine. Said error messages exist simultaneously in a plurality of languages and are displayed in the language specified by the user. This approach has storage and maintenance problems because each error message must be duplicated in its entirety for each language.

[0009] European Pat. Appl. No. EP0774722A2 of Microsoft Corporation published on May 21, 1997, is a method for an information retrieval system that separates the design and content components of a document page. Pages are created with controls that define areas for content to be inserted into said pages.

[0010] It would be advantageous to provide a translation management system that gives the user local control of the multilingual translation of electronic content. It would further be advantageous to provide a translation management system that allows the user to easily manage, schedule, and track translation resources and the content that are sent to the translation resources, thereby enhancing the maintainability of the system as a whole.

SUMMARY OF THE INVENTION

[0011] The invention provides a translation management system. The invention utilizes an intuitive user interface for managing document translation for multilingual Internet Web sites, documents, data streams, and non-text files, enabling the user to incrementally update the language content of a Web site or document and enhancing the maintainability and storage of multilingual electronic content.

[0012] A preferred embodiment of the invention automatically detects when a document, data stream, or non-text file in the master language has been updated and notifies the user which corresponding documents, data streams, or non-text files in the other languages require translation. The documents, data streams, or non-text files requiring translation are staged and dynamically routed and sequenced to individual translation resources where the actual translation is performed.

[0013] Management status, reporting, scheduling, and accounting information is sent to the user as the translation process ensues. The user is notified of the completion of translation and the invention coordinates the delivery of the translated documents, data streams, or non-text files back to the user's site for installation and optional review.

[0014] The invention makes a variety of translation resources instantly available to the user. These translation resources include both automated translation tools as well as human translators. The translation resources are connected to the invention using a flexible architecture that can be deployed on intranets as well as the Internet.

[0015] Other aspects and advantages of the invention will become apparent from the following detailed description in combination with the accompanying drawings, illustrating, by way of example, the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0016]FIG. 1 is a block schematic diagram of the major components of a preferred embodiment of the invention according to the invention;

[0017]FIG. 2 is a block schematic diagram of the placement of the Visitor module in a network environment according to the invention;

[0018]FIG. 3 is a block schematic diagram of a decision flow diagram of the Visitor module according to the invention;

[0019]FIG. 4 is a block schematic diagram of the major components of the Developer module according to the invention;

[0020]FIG. 5 is a block schematic diagram of the placement of the Developer module in a network environment according to the invention;

[0021]FIG. 6 is a block schematic diagram of the major components of the Workflow Manager module according to the invention;

[0022]FIG. 7 is a block schematic diagram of a decision flow diagram of the Manager's Console module according to the invention;

[0023]FIG. 8 is a block schematic diagram of the major components of the Manager's Console module according to the invention;

[0024]FIG. 9 is a block schematic diagram of the major components of the Adaptor segment of the Workflow Pipeline module according to the invention;

[0025]FIG. 10 is a block schematic diagram of a decision flow diagram of the Adaptor module according to the invention;

[0026]FIG. 11 is a block schematic diagram of the major components of the Adaptor module according to the invention; and

[0027]FIG. 12 is a block schematic diagram of the placement of the Workflow Manager module in a network environment according to the invention.

DETAILED DESCRIPTION OF THE INVENTION

[0028] The invention is embodied in a translation management system for computer applications. A system according to the invention provides an intuitive user interface for managing document content translation for multilingual Internet Web sites, documents, data streams, and non-text files, enabling the user to incrementally update the language content of a Web site or document and automatically initiate the translation of the content into the corresponding target languages, keeping the multilingual content synchronized and enhancing its maintainability and storage. Many existing application programs use approaches that make it difficult for the user to manage the translation and synchronization of multilingual content.

[0029] A preferred embodiment of the invention provides a comprehensive suite of three modules that allow a user to build, operate and maintain a multilingual We b site easily and efficiently. The invention enhances an existing Web site b y adding advanced multilingual content management and process control capabilities to the customer's Web server. It also uses standard and open interfaces thus enabling the invention to work with all Web servers on supported platforms.

[0030] Each module is easy to set up and does not require special modifications to the Web site. The invention provides an easy migration path from early-stage customers who are only interested in measuring overseas visitor traffic to more sophisticated customers who need to manage the rapid translation of changing content on large, distributed multilingual Web sites.

[0031] Referring to FIG. 1, the invention provides three components. The Visitor module 101, the Developer module, and the Workflow Manager module 103.

[0032] Each module accesses one or more language and country databases and file systems 104. The Visitor 101, Developer 102, and Workflow Manager 103 modules can operate in the same environment or in a standalone mode.

[0033] The Visitor module greatly enhances the multilingual Web site visitor's experience by providing an automated and seamless way to serve content in the correct language. Web site publishers can serve all their multilingual content through a single point of entry using the Visitor module. Web site visitors will immediately understand the information they see when they enter a site because it will be instantly presented in their language and for their country.

[0034] With respect to FIG. 2, the Visitor module 202 works in tandem with a customer's existing Web server 203. It automatically determines the language and country of a Web site visitor and directs the Web server 203 to deliver the appropriate localized content contained in one or more country/language databases and/or file-based content in a file system 204 to the visitor's browser 201. Recently accessed localized content is placed into a Cache 206. The content is placed in the Cache 206 so that if a similar request comes in for a document in that language and for that country, then the cached version will be pushed out to the browser 201. This saves time and processor overhead for accessing the database and file system 204 to rebuild the requested content. In addition, Visitor 202 informs the browser 201 of the proper font and content encoding needed to display the selected language and enables the browser 201 to download the font using, for example, Bitstream's TrueDoc technology, if required.

[0035] The Visitor module intercepts input text that is submitted using an HTML form (e.g., a customer feedback form), and writes it into a form database 205, in a manner so that it is easily translated later via the Workflow Manager. Most Web sites have forms that allow site visitors to submit comments or request more information from the site host. This feedback might not be in English and would otherwise be incomprehensible to the recipient in a multilingual environment.

[0036] The form database 205 includes sufficient information to identify the country, language and encoding of the text to properly interpret it for subsequent translation. Furthermore, the invention includes a novel database viewer which allows the translated content to be viewed in the context of the form in which it was originally entered.

[0037] Referring to FIG. 3, the Visitor module determines the Web site visitor's language and country 301 from one or more of the following criteria:

[0038] Language preference setting in the browser

[0039] Cookie from previous visit to the Web site

[0040] Root domain of the visitor

[0041] Manual selection by visitor

[0042] Language content available on the server

[0043] Local database of countries and languages of the world

[0044] Local configuration files on the Web site

[0045] The Visitor module supports content in all languages and encodings, including Unicode. Manual language selection is easily implemented through the use of a special command set described later in this document thus eliminating the need for complex CGI scripts or interlinked pages. The required content for the Web site visitor's language and country is checked to see if has been previously requested and resident in the cache 302. If the content is in the cache, then it is delivered from the cache 303.

[0046] If the required content is not in the cache, then the Web server is notified of the appropriate localized content required 304. The appropriate content is then placed into the cache for future reference 305. The Web site visitor's country and language preferences are recorded in the server log 306. The enhanced Web server log gives the site manager a detailed breakdown of country and language for visitors to the Web site. Finally, the browser is notified of the proper display font and allowed to download the font 307.

[0047] Input text that is submitted using an HTML form is intercepted 308. The text is converted to an internal format 309 and is placed in the forms database 310 for later translation.

[0048] The Developer module enables the Web site developer to build a single ‘master’ site which is subsequently displayed in any number of languages, compared with conventional methods whereby the site is re-engineered for each language.

[0049] Referring to FIG. 4, the Developer module contains all of the features of the Visitor module 401 which records the Web site visitor's country and language preferences in the server log 404.

[0050] A toolkit 402 is provided which allows a master site to be built that is language and country-independent. The actual language content is placed in a language and country database and/or file system 403 where it is easily managed and maintained. When a visitor enters the site, the requested document is automatically served in the visitor's language and for the visitor's country by filling in a document template from the master site with the correct language and country content from one or more databases.

[0051] This structure makes the site more compact, reduces site resource requirements and lowers the cost of operating the site.

[0052] The cost of making a design change is also reduced as only the master site needs to be updated. This is in contrast to the more time-consuming and expensive approach of propagating a single change throughout all language versions of the site which is unnecessary with the invention.

[0053] Keeping the translated content in a database 403 also makes it extremely easy and cost-effective to add additional languages to the site. Adding a language simply involves translating the appropriate content and creating new entries in the database 403. The Developer module makes it unnecessary to replicate the entire site for each new language and country as would typically be the case. The toolkit 402 offers the multilingual Web designer a great deal of flexibility. It allows a site to be built which combines content common to all languages with content that is specific to a particular language and country. For example, company-wide information which needs to be served in all languages is easily combined with regional-specific information that may only be required in a single language.

[0054] The invention provides special tags that are used to insert language or country-specific content into an HTML document. The tags are: Multi-country server-side includes (MCSSI); and Multi-language server-side includes (MLSSI). MCSSI allows locale-specific elements of an HTML document to be dynamically included as a function of the current region or country, while MLSSI allows localized elements of an HTML document to be included as a function of the current language. The Developer module also supports the incremental construction of a multilingual Web site through a feature that makes it unnecessary to fully populate the site's language matrix completely with documents. If a requested document does not exist (i.e., it has not been translated into the requested language), the invention automatically retrieves the document in the next most appropriate language for the visitor, or the default language of the document, as specified by the Web site manager. Documents can exist on separate servers and/or databases.

[0055] The invention walks down a priority list of languages for a designated country. If a document in the language that is first on the priority list is not present on the server, it then looks for the next most appropriate language. The list is sorted according to the most prevalent language or dialect for a particular country. For example, the languages entries for Egypt are {arabic, french, english, berber}. A visitor from Egypt will be presented with a requested document in Arabic, if it is available. If it is not, the system will look for one in French, and so on.

[0056] When a visitor is presented with content in an alternate language, an informational text message can be included telling the visitor that the preferred language was not available. The informational text is supplied in the most recently valid language for the visitor's country and language and is embedded within Javascript code. The Javascript code is embedded within the HTML stream that is sent back to the server. The HTML “body” tag has an optional attribute where Javascript code can be inserted after the tag. The informational text contained within the Javascript code is in english and enclosed within the appropriate system tags described below, enabling it to be replaced with its translation in the most recently valid language of the visitor. The informational text has been pretranslated into all of the languages in the system database for the customer.

[0057] This allows easy access to the appropriate translation for the informational text based on the most recently valid language for the visitor's country and language.

[0058] This allows a multilingual Web site to be built incrementally, such that only a portion of the documents on the site need be translated and documents not available in a requested language will be served in the next most appropriate language for a Web site visitor.

[0059] This also gives the customer the option of translating only a subset of the total content on the site. The Developer module controls all aspects of content navigation and delivery for the entire site so that a visitor will always be served in the most appropriate language, based on what language content is actually available on the server. The visitor will never see an error message (i.e. a “404—document not found”) because the requested content is not available in the visitor's language.

[0060] Regions are mapped and organized according to the Web site's needs. For example, a mutli-user server can have a separate region definition for each user's site. The regions file organizes the regions, countries, and languages that the user is concerned with and is configured by the user. The user sets up a mapping, for example, one user can have information specific to Italy and another user can have information that is just concerned with the European region and is not concerned with Italy. This approach allows a hierarchical region-based lookup scheme. Content is hierarchically stored as country and language independent elements such that a one-to-many and many-to-one mapping exists between country and language. The advantage to this approach is that there is no content duplication; the user has only as many files in the system as he has unique content.

[0061] With respect to FIGS. 4 and 5, the toolkit 402 also features a novel mechanism to create localized content for specific geographic regions or countries by using a template-based approach to dynamically create documents tailored for a specific language or country. This feature makes it easy to create a true global site localized for each area of the world with the smallest achievable site footprint on the Web server 503.

[0062] A template contains placeholders for country and language-specific information that has been removed from a document. This information is dynamically inserted from a TermDB 508 (an external glossary), another template or document located in a database or file system 509, or provided automatically by the Developer module 502 when the composite document is presented to the browser 501.

[0063] The basic approach to creating a template has two steps. First, remove as much country and language-specific information as possible from a document. Then, replace this information with appropriate tags and commands specific to the invention and described later in this document.

[0064] The advantage to using templates is that a single document can easily support many languages and countries. For example, a single form or CGI-generated document can be constructed so that it will be automatically localized for different languages and locales. This significantly reduces the number of documents that have to be maintained on the site and makes it very easy to add new languages.

[0065] It also allows a single update to a document to be immediately propagated to all languages and countries.

[0066] This technique allows country or regional content to be conveniently separated from the structure of the document, thereby making it easy to change a design often by updating a single file. This in turn eliminates the ripple effect often seen when a single change must propagate through all of the localized documents on the site. This allows the Web Server 503 to control the locale-independent templates 504, language-specific elements 505, country-specific elements 506, and static HTML content 507.

[0067] Visitors to a multilingual Web site may wish to enter information and feedback into a fill-out form in their local language to send back to the Web site manager. A mechanism is provided, and described above, which facilitates the acquisition and translation of this information. The Developer module captures and tags all such information in a sufficient manner so it can be subsequently translated and analyzed by the customer.

[0068] This approach allows a site to be built with minimal effort and cost, and allows the site to grow over time to meet the exact needs of the customer. Referring to FIG. 6, the Workflow Manager module enables the Web site manager to orchestrate the creation of foreign language versions of the site and to automatically keep them synchronized and up-to-date, cost-effectively and with minimal effort. The Workflow Manager module provides a Manager's Console 601, access to a Workflow Pipeline 602, and customizable Translation Resources 603. Translation queues 604 hold the incoming translated documents and outgoing documents to be translated. Documents, data streams, and non-text content are stored in one or more language and country databases and/or file systems 605. Data streams and non-text content are considered documents in the following text.

[0069] A brief summary of the duties of the three primary components are:

[0070] the Manager's Console, which serves as the user interface

[0071] the Workflow Pipeline, or transport layer

[0072] a set of Translation Resources that perform the actual translation work

[0073] The Workflow Manager module is the core component of the invention. The module allows the Web site manager, with no prior linguistic experience, to effortlessly manage the traditionally complex process of translating and updating a multilingual Web site.

[0074] The Workflow Manager module provides a natural migration path beyond the Visitor and Developer modules. The Visitor and Developer modules provide a solution to efficiently serve and organize content on a multilingual Web site. The Workflow Manager completes the product family by enabling the language content on the site to be kept up-to-date, efficiently and cost-effectively.

[0075] The Web's very nature is dynamic. A monolingual Web site must be updated frequently to remain current. A multilingual Web site has an even more demanding problem of requiring all languages to be updated and synchronized simultaneously. Using traditional techniques, the cost and time required to perform this update and synchronization exceed the benefit and lifetime of the newly updated information to be served, effectively rendering the Web site useless. The Workflow Manager provides a solution to this paradox by reducing the cost and time requirement for language update and synchronization dramatically, thereby ensuring that information on the Web site is always current, regardless of language. The Manager's Console is the user interface for the Workflow Manager and is the primary point of interaction for the Web site manager.

[0076] Referring to FIG. 7, the Manager's Console detects when a document in the master language has been updated 705. It then notifies the Web site manager which corresponding documents in the other languages require translation 706.

[0077] The Manager's Console provides “one-touch” translation, whereby at the dick of a button, documents from any source requiring translation are converted to the internal format 703, staged down the Workflow Pipeline 704 then dynamically routed and sequenced to the individual Translation Resources where the actual translation is performed. Documents may be Web based and non-Web based and may also contain non-text elements. The documents may contain or refer to additional dependent components such as graphics, audio, video, and other multi-media elements. When the Web site manager initiates the translation process, the newly updated master language document and its constituent elements, together with associated control information will be converted by the Console to an internal format, one which is more suitable for information transport over the Workflow Pipeline 703. The Manager's Console automatically controls the sequencing and selection of Translation Resources during workflow processing according to subject matter of the document to be processed, target language of the translation, quality level (whether draft-only or high quality is required) and other variables. The Web site manager can also individually specify the use of a specific set of Translation Resources.

[0078] The Manager's Console provides management status and reporting as the translation process ensues 707. It then automatically notifies the Web site manager of the document translation completion and coordinates the delivery of the translated documents back to the Web site for installation and optional review 708. The Web site manager can directly install the translated documents back onto the active area of the Web site at the dick of a button, or can make them available for internal review within the organization.

[0079] Status information is presented through a highly usable interface that facilitates interaction and improves the productivity of the Web site manager. The Console interface is designed to allow translation and update of the multilingual Web site to be performed cost-effectively and with minimal effort by a non-specialist.

[0080] New languages are easily added to the site as well. The Web site manager simply selects the new language from a pulldown list 701, and the Manager's Console automatically initiates the translation of documents into the desired language, under the control of the Web site manager 702. The documents are converted to the internal format used by the invention 703 and staged down the Workflow Pipeline 704.

[0081] The Manager's Console also has a built-in access and version control system which allows it to be easily integrated with a third-party authoring or document management system on the Web site.

[0082] With respect to FIG. 8, a task view of the Manager's Console is shown. The Update Status module 801 updates the Web site manager of the document translation status. The Complete Document module 803 retrieves the translated document and its constituent or dependent components from the Translation queues 804 and updates the associated document status information. The document delivery to the Web site manager is then coordinated by the Coordinate Document Delivery module 802. Documents that need to be translated are extracted from the language and country databases and file systems 808 and are sent to Translation Queues 804.

[0083] The Project Analyzer module 806 receives project components, in the form of documents and other electronic content from the Translation Queues 804 and analyzes the project in sufficient detail to determine project cost and resource requirements.

[0084] The Project Analyzer module 806 waits until all elements of a project have been received. It then sends the Scheduler module 805 a description of the project and instructs the Scheduler module 805 to begin the project. Typically, the Project Analyzer module 806 works with the Accounting Manager module 809 to generate a project cost estimate prior to beginning the project.

[0085] Once the Scheduler module 805 receives the project information from the Project Analyzer module 806, it creates Work Packets, Job Tickets and a Project Schedule. A single project consists of a set of Work Packets and associated Job Tickets. Each Job Ticket contains a reference to a Translation Resource. A set of Job Tickets is associated with a single Work Packet and describes the activities to be performed by that Work Packet. The Scheduler module 805 generates a Schedule that is sent to the Manager's Console for review and validation. The documents and their constituent or dependent components are then scheduled and sent down to the Workflow Pipeline.

[0086] The Scheduler module 805 updates the Project Schedule 810 and notifies the Accounting Manager module 809 during the course of the project. This permits the Project Schedule 810 to be adjusted when there are changes in the availability of Translation Resources, or when manual changes are made to the project by an operator via the Manager's Console. The Accounting Manager module 809 updates customer and Translation Resource accounting in the Accounting Database 811 as jobs complete. The Accounting Manager module 809 generates project cost estimates (based on input from the Project Analyzer module 806), handles customer billing, and is responsible for generating purchase orders for Translation Resources, when needed.

[0087] Completed documents and their constituent or dependent components that have been checked by the Web site manager are then installed in one or more language and country databases and/or file systems 808 by the Monitor Database Documents module 807.

[0088] The Workflow Pipeline is a transport layer that delivers documents and their constituent or dependent components requiring translation to the Translation Resources where the actual work is performed. The Workflow Pipeline is heavily instrumented so that status and tracking of ongoing work is instantly conveyed to the Web site manager on the Manager's Console.

[0089] The Workflow Pipeline uses a highly configurable architecture allowing a variety of Translation Resources to be instantly available to the Web site manager. These Translation Resources include both automated translation tools as well as human translators.

[0090] Translation Resources are connected to the Pipeline using an open Application Programming Interface (API) known as an Adaptor. Adaptors allow a variety of Translation Resources to be connected to the Pipeline, making it easy to tailor the Workflow Manager to meet a customer's requirements. The flexible Pipeline architecture can be deployed on intranets as well as the Internet. Referring to FIG. 9, Generators 901 are provided that convert the internal format document that is used within the Pipeline to the appropriate format required by the Translation Resource. The Adaptors 902 invoke the specific generator for the appropriate Translation Resource 904. Each Adaptor accepts the internal format document, sends the document to the appropriate Generator 901 which converts the format to one that is acceptable to the Translation Resource 904 attached to the Adaptor 902. The Generator 901 sends the newly formatted document to the Adaptor 902 which in turn sends it to the Translation Resource 904. When the document has been translated by the Translation Resource 904, the Adaptor 902 accepts the document and its associated information, and invokes a Parser 903 which converts the document back into the internal format. The Parser 903 distributes the packet back up the Pipeline.

[0091] Parsers are also invoked whenever a document is extracted from the Translation queues and sent down the Pipeline. The Parser converts the document into the internal format. Generators are, in a similar manner, invoked whenever a translated document is posted back onto the Translation queues after completion of translation. The Generator converts the internal format document back to the document's original format (e.g., HTML). The document is then sent to the final destination.

[0092] With respect to FIG. 10, the Adaptor converts work packets to the appropriate Translation Resource format 1001. The packets are then routed to the appropriate Translation Resource 1002.

[0093] The Adaptor also receives packets from Translation resources 1003. The packet is converted back to the work packet format 1004 and the status and control information in the work packet is updated 1005. The Manager's Console is then notified of the work packet's availability 1006 in the translation queue. This degree of flexibility allows new translation technologies and translation service providers to be quickly integrated into the workflow process. Additional resources are easily allocated to accommodate sites which require frequent update and synchronization.

[0094] Referring to FIG. 11, a task view of the Adaptor is shown. The Convert to Translation Resource module 1101 converts work packets to the appropriate Translation Resource format that is understood by the resource. The packets are then routed to the Translation Resource by the Route Packet module 1102.

[0095] Packets are received by the Receive Packet module 1103. The Convert/Update Packet module 1104 performs the packet conversion back to the work packet format and updates the packet's status and control information. It then notifies the Manager's Console that the work packet is available in the translation queue.

[0096] The Workflow Pipeline together with the Translation Resources allow the translation process to proceed rapidly and efficiently. Translation Resources are centralized or distributed functional blocks which are connected to the Workflow Pipeline where the actual work, including translation, is performed. A typical workflow process will use one or more Translation Resources in a specified sequence to complete the required work. A Translation Resource performs translation or other linguistic functions on a set of input documents and their constituent or dependent components and produces a set of output documents that have been transformed linguistically.

[0097] The Workflow Pipeline connects to any type of Translation Resource.

[0098] Four examples of Translation Resources are:

[0099] Machine translation systems

[0100] Translation memory systems

[0101] Human translators

[0102] Terminology management systems

[0103] Machine translation is software which provides fully automatic, draft-quality translations.

[0104] Translation memory systems provide a database of source/target translation pairs for a particular document. When an updated version of a document needs to be translated, the translation memory can be used to pre-translate the document with translations from the previous version of the document. Human translators are linked to the Workflow Pipeline through a special Adaptor that connects to the Internet or a customer's intranet. This allows any translator, anywhere in the world, to join a virtual translation team and provide translation services to multilingual Web sites or any other translation application serviced by the invention.

[0105] Terminology management systems provide functions that are necessary to support the entire translation process, such as automated generation and retrieval of client-specific glossaries and lexicons. Both human-based as well as technology-based Translation Resources require access to appropriate glossaries and lexicons to ensure that linguistic transformations are performed in the correct terminological domain. Technology-based Translation Resources are easily upgraded as their technology improves. For example, older machine translation or translation memory systems are replaced with newer systems simply by unplugging the old systems and plugging in the new ones through the Adaptors on the Workflow Pipeline.

[0106] The Manager's Console provides the Web site manager with fully automated management of the entire translation process. The following is a description of how the Web site manager interacts with the Manager's Console in the process of keeping a site up-to-date.

[0107] With respect to FIG. 12, when the site is current and all language content is up-to-date, the Manager's Console 1202 reports to the Web site manager 1201 that no action is required.

[0108] If a document in the master language is subsequently updated—perhaps out-of-date product information on the Web site is being updated—the Console 1202 will immediately alert the Web site manager 1201 that the corresponding foreign language versions of the document are out-of-date and need to be re-translated. From this point, the Web site manager simply dicks on a button, using the Console's 1202 “one-touch” translation feature, to automatically initiate the re-translation and update of each document. No additional action is required from the Web site manager 1201 until the documents have been translated and are ready to be mounted back onto the site.

[0109] When the Web site manager 1201 initiates the translation process, the newly updated master language document together with associated control information will be converted by the Console 1202 to an internal format, one which is more suitable for information transport over the Workflow Pipeline 1206. The converted document together with relevant control and status information is known as a work packet. The Workflow Pipeline 1206 is responsible for sending and receiving work packets to an appropriate set of Translation Resources 1207, 1208, 1209 where they are processed.

[0110] The sequence in which the Translation Resources are engaged by the Pipeline is pre-determined according to:

[0111] Settings previously established by the Web site manager

[0112] Subject matter of the content

[0113] Target language of the translation

[0114] Availability of a particular Resource

[0115] When a work packet is dispatched to a Translation Resource 1207 for processing, the packet first flows from the translation queues 1205, through the Pipeline Adaptor for that Resource where it is converted from the Workflow's internal format into one that can be processed by that Resource.

[0116] Once the Translation Resource 1207 has finished its processing, the packet which contains the work completed by the Translation Resource 1207 flows back through the Adaptor where it is re-converted back into the Pipeline's internal format. The Adaptor is also responsible for analyzing the completion status of the Translation Resource and updating the packet's control and status information accordingly.

[0117] A simplified example of a typical workflow sequence is shown below.

[0118] 1. Machine Translation: automatically translate the untranslated (i.e. new) sections of the document.

[0119] 2. Translation Memory: pre-translate the document using saved source/target translation pairs from the previous version of the document.

[0120] 3. Human Translation: post-edit the sections of the document that were machine translated and review the entire document for quality.

[0121] 4. Terminology Management: obtain the correct lexicons and glossaries required to properly apply the other Translation Resources.

[0122] Since the Pipeline 1206 is heavily instrumented, the Console 1202 gives the Web Site manager 1201 continuous updates on the progress of the translation.

[0123] The Console 1202 also uses status information to automatically provide dynamic dispatch and control decisions to achieve the fastest and most cost-effective turnaround time. After completion of the workflow sequence, the translated documents are routed back to the Console 1202 where the Web site manager 1201 is notified of their completion. From there, the Web site manager 1201 can directly install the translated documents back onto the active area of the Web site 1203, file system (local or remote), or database (local or remote) at the dick of a button, or can make them available for internal review within the organization. For example, when the translated documents are installed onto the active area of the Web site 1203, they are referenced by the appropriate language HTML commands 1210, 1211, 1212, 1213, 1214, 1215 inserted into the Web site pages and the translated content is removed from the translated documents and stored back in the database.

[0124] New languages are easily added to the Web site. The Web site manager simply needs to select the new language from a pulldown list along with the desired documents on the Manager's Console and the necessary steps will be automatically invoked to initiate the translation.

[0125] The invention provides the Web site manager with an effortless way of keeping the site up-to-date. One skilled in the art will readily appreciate that, although the invention has been described in the context of Web sites, the same concept applies to other applications. For example, in a fax application, documents are scanned and sent through the invention for translation into selected languages. The translated documents are then automatically faxed to selected locations. Another example would be a universal translator where spoken words are converted into a data stream and sent through the invention for translation into designated languages.

[0126] The translated data stream is converted back into audible speech and sent to the designated audiences. The invention is scalable to provide multilingual presentation and management functions across multiple servers in a distributed environment. For example, some sites might have English content on one server, Japanese on another, and so on. Each server will have installed on its respective site, an instance of the invention communicating with other instances of the invention throughout the system. One server is designated the master, and the others are slaves for the purpose of managing content. The servers communicate over a dedicated interface allowing content to be managed in a distributed fashion. This configuration also supports mirrored sites across multiple servers.

[0127] One skilled in the art will readily appreciate that, although a single user system is specifically mentioned, the same concept applies to multi-user systems, for example, a multi-user configuration would be appropriate for an Internet Service Provider (ISP) that serves multiple customers, with and without multilingual sites, from a single instance of the invention.

[0128] The following is an excerpt of a user manual describing the Visitor and Developer modules for a preferred embodiment of the invention called “WebPlexer”:

[0129] 3. Detailed Functional Description

[0130] The following sections are ordered beginning with basic functions and gradually progressing to those that are more advanced. Similar functions have been grouped together logically for easy reading.

[0131] 3.1 Communication Ports

[0132] WebPlexer has 3 network ports. These ports are used to communicate with the client, the Web server, and the console. The ports can be assigned to any available port number on your system and are specified in WebPlexer's WP_Config file.

[0133] The 3 ports are:

[0134] InternetPort. This is the port WebPlexer uses to communicate with the client.

[0135] ServerPort. This is the port WebPlexer uses to communicate with the Web server.

[0136] ConsolePort. This is the port WebPlexer uses to communicate with a client that is being used for the console. Please see Section 3.10, “WebPlexer Console,” for more information on console operation.

[0137] Port numbers are assigned starting at 1. Lower numbers are reserved for dedicated processes like ftp(21), http(80), and telnet(23). The lower numbered ports are also privileged in that they require root-level authority to use. For testing, we recommend choosing an available port with a number of at least 3000.

[0138] 3.1.1 Operating Modes

[0139] WebPlexer's InternetPort and ServerPort are configured to support two modes of operation, ‘test mode’ and ‘production mode’.

[0140] 3.1.1.1 Test Mode

[0141] In test mode, a separate access path is created for clients to send requests to WebPlexer. Normal http requests to port 80 and the existing Web server are not affected. This permits off-line testing of WebPlexer functionality until the site has been validated.

[0142] To configure test mode:

[0143] 1. Set InternetPort to an unused port number. This will be used for all incoming WebPlexer requests.

[0144] 2. Set ServerPort to 80. This will allow WebPlexer to connect to your existing Web server.

[0145] To access the Web server via WebPlexer, you would type a URL of the form:

[0146] http://www.mysite.com:iiii/

[0147] where iiii is the InternetPort assigned above.

[0148] Normal requests of the form:

[0149] http://www.mysite.com/

[0150] will go directly to the Web server, bypassing WebPlexer.

[0151] You can make WebPlexer available to ordinary port 80 users, even in test mode, by including a special link on a page to send a request to WebPlexer's port.

[0152] For example,

[0153] <A HREF=“http://www.mysite.com:3080/webplexer/index.html”>WebPlexer test</a>

[0154] could be included on a site's home page.

[0155] 3.1.1.2 Production Mode

[0156] In production mode, WebPlexer is configured to process all http requests before they reach the Web server. This would normally be done once off-line testing was completed and the site was ready to go into production.

[0157] To configure production mode:

[0158] 1. Set InternetPort to 80. All http requests will be processed by WebPlexer. Note that this will typically mean that WebPlexer must run as a privileged process.

[0159] 2. Set ServerPort to an unused port. This port will be dedicated to WebPlexer <-->Web server communication.

[0160] 3. Reconfigure your Web server so it is connected to ServerPort. This is typically done by editing your server's httpd.conf file, but the configuration method is determined by your specific server, so please check the documentation that comes with your Web server.

[0161] Normal requests of the form:

[0162] http://www.mysite.com/

[0163] will then go to WebPlexer for initial processing.

[0164] You can still access the Web server directly, with a URL of the form:

[0165] http://www.mysite.com:ssss/

[0166] where ssss is the ServerPort assigned above.

[0167] 3.1.2 Setting InternetPort

[0168] InternetPort is set by editing the line:

[0169] InternetPort iiii

[0170] in the WP_Config file.

[0171] This setting can also be overridden by a command line flag. Please see Section 3.1.1, “Runtime Options,” for more information.

[0172] 3.1.3 Setting ServerPort

[0173] ServerPort is set by editing the line:

[0174] ServerPort ssss

[0175] in the WP_Config file.

[0176] This setting can also be overridden by a command line flag. Please see Section 3.11, “Runtime Options,” for more information.

[0177] 3.1.4 Setting ConsolePort

[0178] ConsolePort is set by editing the line:

[0179] ConsolePort cccc

[0180] in the WP_Config file.

[0181] This setting can also be overridden by a command line flag. Please see Section 3.1.1, “Runtime Options,” for more information.

[0182] 3.2 Logs

[0183] WebPlexer supports 3 types of logs:

[0184] AccessLog

[0185] ErrorLog

[0186] InformationLog

[0187] The filenames of these logs are defined in the WP_Config file. Additional information on how to define the log files can be found in Chapter 4, “Contents of WebPlexer Files.”

[0188] NOTE: A fourth log, the Usage Log is generated by the updtusage tool that analyzes the Information Log. This tool will be included in a future release.

[0189] The function of each log is described below. A detailed specification can be found in Section 4.4, “Log Specifications.”

[0190] 3.2.1 AccessLog

[0191] The AccessLog records information about each request received b y WebPlexer, such as date, time, and request type. WebPlexer command requests (WPCommands) are also logged.

[0192] NOTE: When WebPlexer is configured for “production mode” (see Section 3.1.1.2, “Production Mode”), WebPlexer's Access Log should be used in place of the Web server's access log for analysis and auditing purposes (the Web server's access log will show all requests originating from WebPlexer).

[0193] Examples of AccessLog entries are:

[0194] pp93.satcom.net—[28/Jul/1996:23:37:23 -0700] “GET /cnv.post/info.html HTTP/1.0” 302 -

[0195] pp93.satcom.net—[28/Jul/1996:23:37:24 -0700] “GET /cnv.post/english-american_United-States/info.html HTTP/1.0” 200 3372

[0196] pp93.satcom.net—[28/Jul/1996:23:37:29 -0700] “GET/cnv.post/coming/flags/United-States.gif HTTP/1.0” 200 3594

[0197] 3.2.2 InformationLog

[0198] The InformationLog contains detailed information about WebPlexer's language selection processing for each request.

[0199] Examples of InformationLog entries are:

[0200] prune.loria.fr—[26/Jul/1996:05:44:43 -0700] Country Selection: prune.loria.fr→ France

[0201] prune.loria.fr—[26/Jul/1996:05:44:43 -0700] Language Set: prune.loria.fr→ {french-continental, french}

[0202] prune.loria.fr—[26/Jul/1996:05:44:43 -0700] Language Selection: prune.loria.fr→ French-continental

[0203] 3.2.3 ErrorLog

[0204] The ErrorLog shows any errors that occurred during WebPlexer operation, or during the processing of a request.

[0205] Examples of ErrorLog entries are:

[0206] [23/Jul/1996:03:35:40 -0700] FATAL: Could not send request to HTTP server!!!

[0207] [23/Jul/1996:04:03:34 -0700] Timed out when writing response to client

[0208] 3.2.4 UsageLog

[0209] The UsageLog contains a summary of country and language statistics. It is generated from the InformationLog using the usage log analysis tool. The UsageLog can be further processed using the visits log analysis tool. Please see section x.xx for a description of WebPlexer's log analysis tools.

[0210] Examples of UsageLog entries are:

[0211] [17/Oct/1996:13:40:11 -0700] Language: German www07.btx.dtag.de

[0212] [17/Oct/1996:14:09:57 -0700] Country: Argentina server1.sminter.com.ar

[0213] 3.3 Language Selection

[0214] WebPlexer's Language Selection feature allows the most appropriate language of a requested document to be served to a Web browser.

[0215] “Most appropriate language” means a language that has been:

[0216] specified as a preference by the Web browser

[0217] automatically selected by WebPlexer from the country of origin

[0218] manually chosen by the user

[0219] specified by a cookie

[0220] These three language selection modes all work together seamlessly. They do not require the addition of any special CGI scripts or links to be added to your Web site.

[0221] The language selection algorithm requires that each language be assigned a unique directory in the document tree. All documents in that language are placed in the corresponding directory. The entire document tree then becomes a collection of parallel language directories.

[0222] For example, if user ‘joe’ has english, french, and spanish documents on your site, the directory structure might look like this: htdocs/  joe/   english/    index.html    info.html   french/    index.html    info.html   spanish/    index.html    info.html

[0223] WebPlexer's language selection algorithm works by inserting the correct language directory in the URL before sending the request on to the Web server.

[0224] For example, an incoming URL of:

[0225] http://www.lai.com/joe

[0226] would send a modified URL of:

[0227] http://www.lai.com/joe/french

[0228] to the Web server, if the browser's preferred language were French.

[0229] 3.3.1 The Document Matrix

[0230] A group of language directories and the documents they contain can be likened to a matrix. This matrix has one row for each language, and one column for each document in the collection. When expressed in this form, the collection is known as a document matrix.

[0231] In the example just given, the document matrix might look something like: index.html info.html english X X french X X spanish X X

[0232] where the ‘X’ indicates the presence of a document in that language.

[0233] WebPlexer's exclusive document management feature known as “SPAMM” (Sparse Matrix Manager) does not require each document to be translated in every language, and therefore does not require every cell of the document matrix to be filled in.

[0234] In addition, SPAMM also permits templates to be placed only in the default language directory (see Section 3.3.2.3, “Specifying the Local Default Languages”) and eliminates the need for them to be instantiated in every directory.

[0235] SPAMM offers an incremental approach to building a multilingual Web site. Please see Section 3.9.2, “SPAMM (Sparse Matrix Manager),” for more information on this feature.

[0236] 3.3.2 Setting Up Language Selection

[0237] WebPlexer's Language Selection feature is enabled by editing a few lines in the WP_Map file, located in the main WebPlexer directory. Once the file has been set up, any of the language selection modes (browser-specified, automatic, manual) are available.

[0238] The information that needs to be entered in the WP_Map file is:

[0239] 1. The top-level URL of your site.

[0240] 2. The list of languages on your site and the names of the directories where the documents are located.

[0241] 3. The encodings in which the documents are represented (e.g. ISO-8859-1)

[0242] 4. Default directories in case the requested language is not found (usually English).

[0243] These four pieces of information together make up what is known as a “URL group” declaration.

[0244] Often a single server will serve multiple sites. You can easily have WebPlexer support multiple sites by creating a separate URL group for each site.

[0245] The next sections explain each component of the URL group declaration. Please refer to the example WP_Map file supplied with this release while reading the following sections.

[0246] 3.3.2.1 Specifying the Top-Level URL

[0247] The top-level URL is specified by adding lines of the form  URL::<path> <path_type> to the WP_Map file. where  <path>

[0248] is the directory path of the top-level URL below the htdoc root.

[0249] <path_type>

[0250] is either ‘d’ or ‘f’ depending on whether the path is a directory or a file.

[0251] NOTE: In the current implementation, when a directory is specified, it is also necessary to specify the corresponding top-level file as well (usually index.html).

[0252] In the previous example, there would be two lines reading:

[0253] URL::/joe d

[0254] URL::/joe/index.html f

[0255] Note that this file (/joe/index.html) does not actually exist in the document hierarchy but should match the URL the user will type when entering the site.

[0256] If the selected language were French, the URL mappings would be:

[0257] http://www.lai.com/joe→http://www.lai.com/joe/french

[0258] and

[0259] http://www.lai.com/joe/index.html→http://www.lai.com/joe/french/index.html

[0260] 3.3.2.2 Specifying the Language-to-Directory Map and Charset

[0261] The language-to-directory map and charset (document encoding) are specified by adding lines of the form:  <language>: <language_directory> <charset> immediately after the URL specification. where  <language>

[0262] is the name of the language. Please see Appendix B., “List of Available Languages,” for a list of which languages are available for this release.

[0263] <language_directory>

[0264] is the name of the subdirectory containing documents of that language.

[0265] <charset>

[0266] is the encoding used for documents in that language (e.g. ISO-8859-1)

[0267] In the previous example, these lines would read:

[0268] english: english ISO-8859-1

[0269] french: french ISO-8859-1

[0270] spanish: spanish ISO-8859-1

[0271] 3.3.2.3 Specifying the Local Default Languages

[0272] The local default languages tell WebPlexer which language to use in case the requested language is not available on the server.

[0273] There are two local default languages that need to be specified. The first is called “others” and the second is simply called “default”.

[0274] The “others” language is chosen when the requested language is valid but does not exist on the server.

[0275] For example, if English, French, and Spanish documents exist on the server, but the requested language is Russian, WebPlexer will use the language defined as “others”.

[0276] The “default” language is chosen when WebPlexer cannot determine the language of a request and none has been specified by the browser. This can happen when the country of origin cannot be determined because the hostname is unavailable, for example, when the requester is behind a firewall.

[0277] These directories are specified by including the following lines in the WP_Map file:

[0278] others: <others_language><charset>

[0279] default: <default_language><charset>

[0280] It is usually the case that “others” and “default” are both set to English.

[0281] In the example above, these lines would read:

[0282] others: english ISO-8859-1

[0283] default: english ISO-8859-1

[0284] The next sections describe the language selection algorithms in more detail.

[0285] 3.3.3 Browser-Specified Language Selection

[0286] In browser-specified language selection, the browser sends its language preference along with the http request. The language is set through a preference or option setting in the browser. The preference is sent to WebPlexer in the “Accept-Language” header within the request message.

[0287] The Accept-Language header is described in the http specification. The specification allows the browser to send more than one language in the header.

[0288] The group of languages is ordered with the most desirable language first.

[0289] WebPlexer uses the Accept-Language header to select the correct language. The header is only used when the request is to a URL that matches the top-level URL given in the WP_Map file (see Section 4.2.1, “Specifying the Top-Level URL”).

[0290] For example, if the top-level URL were /joe, and the browser preference were set to Spanish, a request to:

[0291] http://www.lai.com/joe/

[0292] would cause the URL to be mapped to:

[0293] http://www. lai.com/joe/spanish

[0294] and sent to the Web server.

[0295] If the browser has specified more than one language, WebPlexer goes through the languages in order and stop when it finds the first one that is present on the server. If none of the languages are found, WebPlexer uses the “others” language specified in the WP_Map file (see Section 4.2.2.1, “others:”)

[0296] Once the language has been determined, WebPlexer redirects the browser to the directory for that language. All accesses to relative links within the requested document stay within that directory.

[0297] Changing the browser's language preference does not have any effect until the top-level URL is again requested and the browser re-enters the site. The recommended way to change language within a language directory is by manual selection (see Section 3.3.5, “Manual Language Selection”).

[0298] Browser-specified language selection has the highest priority upon entry to the site.

[0299] 3.3.4 Automatic Language Selection

[0300] In automatic language selection, WebPlexer determines the language by first determining the country from the requester's domain, then looking up the language for that country in a database.

[0301] Automatic language selection is only active under the following two conditions.

[0302] 1. The request is to the top-level URL specified in the WP_Map file (see Section 3.3.2.1, “Specifying the Top-Level URL”).

[0303] 2. The browser has not set a preferred language (see Section 3.3.3, “Browser-Specified Language Selection”).

[0304] NOTE: If the browser has specified a language preference, it overrides any automatic language selection.

[0305] For example, if the top-level URL were /joe, and the host domain were eiffel.tower.fr, a request to:

[0306] http://www.lai.com/joe/

[0307] would cause the URL to be mapped to:

[0308] http://www.lai.com/joe/french

[0309] and sent to the Web server.

[0310] The country-to-language database contains a list of languages for each country.

[0311] These languages are arranged in order of frequency from most-used to least-used.

[0312] This list of languages is processed in the same way as preferred languages are handled when received from a browser (see Section 3.3.3, “Browser-Specified Language Selection”). This means that the languages are examined until the first one present on the server is found.

[0313] For example, the languages of Switzerland are {german, french, italian, romansch} and will be searched in that order. The rules for selecting the local default languages are the same as for browser-specified languages, if the language cannot be found.

[0314] 3.3.5 Manual Language Selection

[0315] Manual language selection is effective at any time. Manual language selection overrides any automatic or browser-specified language.

[0316] Manual language selection is performed by issuing a WPCommand whose type is “language”. WPCommands are more fully described in Section 3.6.3.3, “WPCommands.” They result in the browser sending a request to WebPlexer of the form:

[0317] http://www.lai.com/joe/xxxx/WPCommand?language=yyyy

[0318] where xxxx is the current language (plus country) directory and yyyy is the desired language to switch to.

[0319] NOTE: language (plus country) means that the language directory is appended with the currently selected country (e.g. english_United-States)

[0320] Note that even with manual language selection, the languages and directories in the WP_Map file still need to be set up as in automatic language selection.

[0321] 3.3.6 Cookie-Based Language Selection

[0322] 3.3.6.1 Using WPCommand?language

[0323] WPCommands are normally issued through hypertext links embedded in an HTML document. This statement illustrates a simple example,

[0324] <A HREF=“WPCommand?language=french”>French</A>

[0325] If the user is currently looking at an English document, clicking on the word ‘French’ will cause the browser to send WebPlexer a request for the URL

[0326] http://www.lai.com/joe/english_United-States/WPCommand?language=french

[0327] which will map to

[0328] http://www.lai.com/joe/french_United-States/xxx.html

[0329] where xxx.html is the current document (the one that contains the WPCommand link). Note that WebPlexer will return the browser to the original document in the new language, in this case, French.

[0330] The manual language selection feature is performed completely by WebPlexer, without the need for CGI scripts or complex interlinking of HTML documents. It merely requires the addition of a link in the HTML to send the WPCommand to WebPlexer for each desired language.

[0331] The WPCommand hypertext link can be used like any other HTML link, that is, it can be placed within a table, connected to a graphic or icon, or built into an imagemap.

[0332] 3.3.6.2 Using WPCommand?link

[0333] The method described above works well when the number of languages is small. However, as the number of languages on the server increases, there may not be enough space to have the links for all the languages appear on each page.

[0334] In this case, a generic mechanism exists for handling WPCommands that will move all of the language selection links off to a separate page. Once the links are moved, a hypertext link that points to this special language selection page is placed on each page of your site.

[0335] Because of the need to return to the originating page when the language is changed, WebPlexer requires that a special WPCommand be used to invoke the link to the change language page.

[0336] This WPCommand is of type ‘link’ and takes the name of the page to link to as an argument. Its external behavior is the same as if a direct HTML link were used, except it notifies WebPlexer that a change language (or change country) WPCommand is about to be issued.

[0337] This allows WebPlexer to return the browser to the originating page once the language has changed.

[0338] In the HTML, this link would be coded as

[0339] <A H REF=“WPCommand?link=langsel.html”>Change Language </A>

[0340] and would produce a request URL to WebPlexer of the form

[0341] http://www.lai.com/joe/english_United-States/WPCommand?link=langsel.html

[0342] where langsel.html is the language selection page.

[0343] 3.3.7 Hostname and IP Address Overrides

[0344] WebPlexer provides a method of optionally forcing the selection of specific language(s) for certain hostnames or ip addresses.

[0345] This feature overrides automatic language selection when the top-level URL specified in the WP_Map file is requested. A browser-specified language preference will still be used if specified.

[0346] There are two files used to specify automatic language selection overrides:

[0347] HostNameMap and IPAddrMap, both of which are in WebPlexer's language subdirectory.

[0348] The format of these files is described in Section 4.3, “Map Overrides.”

[0349] 3.3.8 Setting the Global Default Language

[0350] The global default language is set in the WP_Map file with the directive:

[0351] defaultLanguage <language>

[0352] and is normally the same as the local default language specified in the URL group definition. Specifying the local default language is described in Section

[0353] 3.3.2.3, “Specifying the Local Default Languages.”

[0354] The global default language is used as the default for the console and for some WebPlexer initialization.

[0355] 3.3.9 Content Tagging and Support for Multilingual Browsers

[0356] Content tagging allows WebPlexer to inform the browser of the language and charset used to encode a document when the document is accessed. Some browsers, like Netscape Navigator, use this information to automatically switch to the correct font and encoding for a particular language.

[0357] Content tagging is always active whenever a document is fetched from a language directory that is specified in the WP_Map file.

[0358] When a document is content tagged, the http Content-Language and Content-Type response headers are returned with the document to indicate the language and charset in use.

[0359] These fields are automatically updated by WebPlexer even when the language is changed by manual selection.

[0360] 3.4 Country Selection

[0361] WebPlexer provides three ways by which the country of an incoming request is determined.

[0362] Automatic country selection

[0363] Manual country selection

[0364] Cookie-based country selection

[0365] These are described in detail below.

[0366] 3.4.1 Automatic Country Selection

[0367] With automatic country selection, WebPlexer determines the country from the requester's domain. If the domain cannot be determined (usually because the requester is behind a firewall), the country is set to the global default country (see Section 3.4.5, “Setting the Global Default Country”).

[0368] Automatic country selection is only active when the browser request is to the top-level URL specified in the WP_Map file. See Section 3.3.2.1, “Specifying the Top-Level URL,” for a detailed description of how to set the top-level URL. Once the country has been determined, its value is saved by appending it to the language directory in the mapped URL.

[0369] For example, if the top-level URL were /joe, and the host domain was eiffel.tower.fr, a request to:

[0370] http://www.lai.com/joe/

[0371] would cause the URL to be mapped to:

[0372] http://www.lai.com/joe/french_France/

[0373] By embedding the country name in the URL, WebPlexer can retain the country setting for the lifetime of this session.

[0374] 3.4.2 Manual Country Selection

[0375] Manual country selection is performed by issuing a WPCommand of type “country”. WPCommands are more fully described in Section 3.6.3.3, “WPCommands.” They result in the browser sending a request to WebPlexer of the form:

[0376] http://www.lai.com/joe/xxxx/WPCommand?country=yyyy

[0377] where xxxx is the current language directory appended to the current country, and yyyy is the desired country to switch to. Once the country changes, the language will also change to match the new country.

[0378] For example, if the current country is France and the current language is French, and the current document being viewed is info.html, to request that the country be changed to German, this request should be sent to WebPlexer:

[0379] http://www.lai.com/joe/french_France/ WPCommand?country=germany

[0380] WebPlexer will respond with a new URL that looks like

[0381] http://www.lai.com/joe/german_Germany/info.html

[0382] and which will fetch the German version of the info.html document.

[0383] 3.4.3 Cookie-Based Country Selection

[0384] 3.4.4 Declaring Worldwide Regions

[0385] Regions are defined in the WP_Regions file. Regions allow groups of countries to be combined into geographical areas that are meaningful for the type of content that is on the site.

[0386] For example, if a company had one sales office in Europe, and another in Asia, and had developed Web site content that was specific to these markets, it might want to create two regions like this:

[0387] Sales_region1: France, Germany, Italy, Spain

[0388] Sales_region2: China, Hong-Kong, Japan

[0389] Regions can be either user-defined or pre-defined (default). User-defined regions are specified in the WP_Regions file (see Section 4.9, “WP_Regions”). Pre-defined (default) regions are established by WebPlexer. Please see Appendix D., “List of WebPlexer Default Regions,” for more information.

[0390] Regions are used by the multi-country server-side include feature (see “Multi-Country Server-Side Includes (MCSSI)”). They allow specific content to be presented to users from countries in those regions when they enter the Web site.

[0391] 3.4.5 Setting the Global Default Country

[0392] The global default country is set in the WP_Map file with the directive:

[0393]

[0394] defaultCountry <country>

[0395] where <country> is one of the valid countries given in Appendix C., “List of Available Countries.”

[0396] The global default country is used as the default for the console and for some additional WebPlexer functions.

[0397] 3.5 Country and Language Management

[0398] WebPlexer has the unique ability to independently maintain both the country and the language associated with each request. This provides a great deal of flexibility in selectively targeting content to specific regions or countries of the world and, at the same time, making that content available in multiple languages.

[0399] It is important to understand how WebPlexer's country management and language management are different and how they are similar.

[0400] In the following description, the term “session” refers to a logical grouping of requests between browser and WebPlexer. A session begins with the browser making a request for the top-level URL. It ends with the final response being sent from WebPlexer to the browser. A session can have any number of request/response pairs between these two endpoints.

[0401] A session has a state associated with it. Included in this state are the country and language of the requester.

[0402] Once the country and language state have been determined from the initial request, they remain unchanged until the browser initiates an action like manually changing the country or language.

[0403] Unfortunately, the http protocol used for data transport on the Web is a stateless protocol. This means that the protocol does not allow state to be maintained from one request to another.

[0404] WebPlexer uses a unique persistence mechanism for retaining session state across multiple requests. This mechanism allows country and language information to be saved throughout the lifetime of a session.

[0405] WebPlexer uses a simple 4-step algorithm for managing country and language when processing a request:

[0406] 1. Determine country.

[0407] 2. Determine language from country.

[0408] 3. Select content for country.

[0409] 4. Modify content for language.

[0410] Once the country and language for a request have been established, they are available as state variables within the HTML and can be used for:

[0411] 1. Content selection based on country, region, or language.

[0412] 2. Word and phrase replacement out of an external glossary (this glossary is referred to as a TermDB).

[0413] 3. Setting language and country-specific “custom variables” such as country flag, language name, and country name.

[0414] 4. Sorting a list of items according to sort rules of the currently displayed language.

[0415] WebPlexer's 4-step algorithm for country and language management is described in more detail below.

[0416] 3.5.1 Determine Country

[0417] WebPlexer will first determine the country of the requester if it is not known (on an initial request), or when it is manually selected (through a WebPlexer change country command (see Section 3.4.2, “Manual Country Selection”)).

[0418] 3.5.2 Determine Language from Country

[0419] WebPlexer uses the country from the previous step to determine the slanguage of the requester. A list of languages for the selected country is obtained from a database and the first one that matches a language present on the server is selected.

[0420] For example, if the requestor's country were Switzerland, the requestor's language could be set to either german, french, italian, or romansch depending on which one was found first on the server.

[0421] The exceptions to this rule are:

[0422] 1. When the browser specifies the language explicitly in its preferences (see Section 3.3.3, “Browser-Specified Language Selection”).

[0423] 2. When the language is overridden through a HostName or IPAddress map (see Section 3.3.7, “Hostname and IP Address Overrides”).

[0424] 3. When the language is manually selected through a WebPlexer change language command (see Section 3.3.5, “Manual Language Selection”). Once country and language are determined, the following rules apply.

[0425] 3.5.3 Select Content for Country

[0426] WebPlexer uses the country to dynamically select content specific to that country. This allows the content to change based on the geographic location of the requester. The actual selection mechanism is controlled by the multi-country server-side include feature. This feature is more fully described in “Multi-Country Server-Side Includes (MCSSI).” Additional information can be found in Section 3.6.1, “Template Model,” which describes WebPlexer's template model.

[0427] 3.5.4 Modify Content for Language

[0428] WebPlexer presents the content in the language selected by the requester.

[0429] There are 3 methods that WebPlexer uses to present content in the selected language:

[0430] 1. A static document that has been pre-translated is selected from the corresponding language directory. For example, if the language is French, the document will be retrieved from the french directory.

[0431] 2. Content that has been pre-translated is inserted into a template using the multi-language server-side include feature. This feature is more fully described in “Multi-Language Server-Side Includes (MLSSI).” Additional information can be found in Section 3.6.1, “Template Model,” which describes WebPlexer's template model.

[0432] 3. Words and sentences that are marked up with WebPlexer's WPReplace tags are dynamically “translated” into the requested language using an external TermDB. WPReplace tags and TermDBs are described in Section 3.6.3.1, “WPReplace,” and Section 3.6.2, “TermDBs (tm).”

[0433] 3.6 Multilingual ToolKit (tm)

[0434] The Multilingual ToolKit is a set of HTML extensions and templates that simplifies the design and construction of multi-language and multi-country Web pages.

[0435] The Multilingual ToolKit consists of several key WebPlexer resources:

[0436] 1. A template-based model of page construction.

[0437] 2. External, multilingual glossaries known as TermDBs.

[0438] 3. A set of HTML extensions to allow country and language settings to dynamically control a document's content.

[0439] 4. Built-in support for manually changing language and country, eliminating the need for special CGI scripts or complex interlinked pages.

[0440] 5. Custom variables to facilitate customization of a document according to the current language and country.

[0441] 6. Custom functions to change the appearance of a page according to language and country.

[0442] 7. Server-side includes to allow a document to be built out of language and country-specific component parts.

[0443] The following sections discuss the specific components of the Multilingual ToolKit in more detail.

[0444] 3.6.1 Template Model

[0445] WebPlexer's Multilingual ToolKit uses a template-based approach to dynamically create documents tailored for a specific language or country.

[0446] A template contains placeholders for country and language-specific information that has been removed from a document. This information is dynamically inserted from a TermDB, another template or document, or provided automatically by WebPlexer when the composite document is presented to the browser.

[0447] The basic approach to creating a template has two steps. First, remove as much country and language-specific information as possible from a document. Then, replace this information with appropriate WebPlexer tags and commands.

[0448] The advantage to using templates is that a single document can easily support many languages and countries.

[0449] For example, a single form or CGI-generated document can be constructed so that it will be automatically localized for different languages and locales.

[0450] This significantly reduces the number of documents that have to be maintained on the site and makes it very easy to add new languages. It also allows a single update to a document to be immediately propagated to all languages and countries.

[0451] This technique also allows country or regional content to be conveniently separated from the structure of the document, making it easy to change a design often by updating a single file. This eliminates the ripple effect often seen when a single change must propagate through all of the localized documents on the site.

[0452] 3.6.1.1 Template Types

[0453] WebPlexer supports three basic kinds of templates.

[0454] 1. Static (no template).

[0455] 2. File-based.

[0456] 3. Tag-based.

[0457] One document may contain all three template types. We call such a document a “composite” document, since it is made up of multiple elements.

[0458] Most documents will have a mixture of these three basic types. In the sample included with this release, the file ‘info.html’ is a combination of static and tag-based templates, whereas the template of ‘contact.html’ is completely tag-based.

[0459] Please look through the sample files in the htdocs directory of this release for examples showing the use of templates.

[0460] File-based templates require the server-side include feature. This feature is not available in the current release.

[0461] Tag-based templates are the most generic and allow a single document to be used across all languages and countries.

[0462] In general, the smaller the amount of static content in a template, the more generic the template is and the fewer the number of times it needs to be instantiated.

[0463] The next sections discuss the template types in more detail.

[0464] Static

[0465] Static templates are not really templates at all. They are simply collections of static text.

[0466] File-Based

[0467] File-based templates allow external files containing localized content such as country, regional, or language-specific information to be inserted dynamically into a document. File-based templates are provided using the server-side include feature described in Section 3.6.3.5, “Server-Side Includes.”

[0468] Tag-Based

[0469] Tag-based templates allow replacement of marked-up text with translations from an external TermDB according to the selected country or language. Tag-based templates are provided using the WebPlexer HTML extensions described in Section 3.6.3.1, “WPReplace.”

[0470] 3.6.2 TermDBs (tm)

[0471] A TermDB is an HTML representation of a multilingual glossary. The glossary is built in the form of an HTML table. Rows in the table correspond to entries in the glossary, be they words, phrases, or arbitrary strings. Columns in the table correspond to individual languages in the glossary such as English, French, or German.

[0472] One language in the TermDB is designated the primary language and is assigned to column 1 of the table. This primary language is used as the language of the key when looking up entries in the TermDB.

[0473] The TermDB is used together with the WPReplaceBegin and WPReplaceEnd tags. (See Section 3.6.3.1, “WPReplace”). The tags enclose text that will be replaced by a TermDB entry. The text must be in the primary language.

[0474] The following example shows how the word “hello” would be translated using the TermDB.

[0475] Sample HTML:

[0476] <!--WPReplaceBegin-->hello<!--WPReplaceEnd-->

[0477] Sample TermDB: english hello french bonjour spanish hola

[0478] When WebPlexer accesses the TermDB, it first finds the word ‘hello’ by looking in row 1 (the primary language row) of the TermDB and finding the column that contains the desired term. Then it retrieves the term from the row of the table corresponding to the current language (row 2, in the case of French) in the column it identified as containing the desired term.

[0479] This release of WebPlexer comes with a standard TermDB that includes the names of all languages and countries translated into 25 languages.

[0480] WebPlexer supports the use of multiple TermDBs. Each top-level URL declared in the WP_Map file can be associated with a different TermDB, and multiple TermDBs can be defined for a given URL. This makes it possible to maintain several small TermDBs rather than one large one.

[0481] There are three types of TermDBs:

[0482] The System TermDB (included with the product)

[0483] Add-on TermDBs (available from Language Automation)

[0484] User-defined TermDBs (created with the tpbuilder utility, explained in the next section).

[0485] TermDBs, together with WebPlexer's WPReplace tag, allow multilingual terminology to be centralized. This has several advantages:

[0486] It makes it easy to add support for new languages without changing any of the documents on the site.

[0487] Changes to the form or structure of a document can be made immediately available in all languages. All languages can be updated simultaneously.

[0488] The number of documents that need to be maintained on the site is reduced. It is not necessary to have separate versions of a document for each language.

[0489] A single CGI script or form can be localized for multiple languages from a single copy of source code. No update is required when new languages are added.

[0490] TermDBs and the other resources of the Multilingual ToolKit can be used most effectively if you plan appropriately before you design your site. If you need assistance in building your multilingual site, please contact Language Automation and one of our site support engineers will be happy to assist you.

[0491] 3.6.2.1 Building User-Defined TermDBs

[0492] User-defined TermDBs can be created and updated using the tpbuilder utility that comes with WebPlexer.

[0493] tpbuilder has the following syntax:

[0494] tpbuilder <controlFile> <outputTermDB>or

[0495] tpbuilder <controlFile> <inputTermDB> <outputTermDB>

[0496] The first form is used when creating a new TermDB. The second form is used for updating an existing TermDB.

[0497] controlFile has the following syntax: # comments <TermDB title string> <TermDB table caption> <TermDB text body> <blank line> <masterLanguage> <encoding> <input-file> <language1> <encoding1> <input-file1> <language2> <encoding2> <input-file2> <language3> <encoding3> <input-file3> <language4> <encoding4> <input-file4>          .          .          . <languageN> <encodingN> <input-fileN> where <TermDB title string> is the title string in the generated HTML file. <TermDB table caption> is the caption of the generated table. <TermDB text body>

[0498] is the string inserted before the actual table and is part of the text body.

[0499] Note that these strings are for informational and readability purposes only and are not used by WebPlexer.

[0500] A line of the form

[0501] <languageN> <encodingN> <input-fileN> <comment>

[0502] specifies the target language, encoding and input file that contains the list of strings to be entered into the TermDB. The first line must specify the TermDB's master language. The master language is used to index into the TermDB using a key. The key is obtained from the string contained between <!--WPReplaceBegin--> and <!--WPReplaceEnd--> tags.

[0503] NOTE: the control file and input files must be in the same directory.

[0504] For example, a typical control file might look like this:

[0505] Joe's TermDB

[0506] This is the TermDB for Joe Joe's TermDB english ISO-8859-1 laieng.txt chinese GB2312 laichs.txt french ISO-8859-1 laifre.txt

[0507] In this case, english is defined to be the master language of the TermDB and the list of index terms will be taken from the file laieng.txt. The corresponding translations into arabic and french will be read from the files laiarah.txt and laifre.txt, respectively.

[0508] The input files have the following syntax:

[0509] 1:<TermString1>

[0510] 2:<TermString2>

[0511] .

[0512] .

[0513] .

[0514] N:<TermStringN>

[0515] where <TermStringN> is a string to be entered into the TermDB for that particular language. Note that the numbers at the beginning of the line are arbitrary and are used to easily align the text across each of the input files.

[0516] For example, a typical set of input files might look like this:

[0517] English

[0518] 1:hello

[0519] 2:goodbye

[0520] French

[0521] 1:bonjour

[0522] 2:au revoir

[0523] Spanish

[0524] 1:hola

[0525] 2:adios

[0526] When tpbuilder is run, it will write status information to stdout.

[0527] Updating an Existing TermDB

[0528] An existing TermDB is updated using this form of the tpbuilder command:

[0529] tpbuilder <controlFile> <inputTermDB> <outputTermDB>

[0530] NOTE: The controlFile must contain all of the languages that were specified when the TermDB was initially created.

[0531] Generally speaking, there are three types of update operations that can be performed on a TermDB.

[0532] Adding new entries (and optionally their translations)

[0533] Replacing old entries (and optionally their translations)

[0534] Deleting entries

[0535] These operations are controlled through the contents of the individual input files specified in the controlFile and are described in more detail below.

[0536] Adding an Entry

[0537] To add a new entry, simply add a new TermString to the master language input file and optionally, corresponding TermStrings in the target language input files. If a matching translation is not found in a target language input file, an empty entry will be created and will be filled in later when the translation is available through the WebPlexer console's translation management feature. Please see section x.xx for further information on console operation.

[0538] If an empty TermDB entry is accessed during a lookup, the TermDB will return the value of the original master language string (i.e. the index).

[0539] NOTE: Prior to updating a TermDB, it is recommended that TermStrings that will not change be removed from the input files (i.e. input files should only specify actions to be performed during the update).

[0540] Replacing an Entry

[0541] To replace an entry, simply replace old translation(s) in the target language input files with new translations of the TermString. The original TermString must be specified in the master language input file.

[0542] If new translations are not available, simply put a blank line in the target language input file(s) with a number that matches the original TermString in the master language input file. The translations will be updated later through the WebPlexer console's translation management feature.

[0543] Deleting an Entry

[0544] To delete an entry, simply put a minus sign (‘−’) in front of the line in the master language input file corresponding to the entry to be deleted. The master language entry for that TermString along with all translations will be removed from the TermDB.

[0545] Including HTML Tags in a TermDB Entry

[0546] HTML tags can be included in TermStrings to allow complete HTML constructs to be embedded between WPReplace tags. This provides a great deal of freedom in content organization.

[0547] Embedded HTML tags must be preceded by a backslash (‘\’).

[0548] For example, the following is a valid TermString:

[0549] 25:\<img src=∫balloon.gif∫\>

[0550] The backslash character can also be used as a valid character in the TermString but it must be preceded by another backslash.

[0551] 3.6.3 HTML Extensions

[0552] The Multilingual ToolKit's HTML extensions are a set of special-purpose commands and comment-embedded HTML tags. They enable WebPlexer to provide special country and language processing when serving a document.

[0553] The extensions consist of

[0554] 1. WPReplace for replacing a text string with its translation from a TermDB.

[0555] 2. WPSort for sorting lists according to the sort rules of the currently selected language.

[0556] 3. WPCommands for providing the change language/change country function without the need for CGI scripts or interlinked pages.

[0557] 4. CustomVars for dynamically inserting language name, country name, and country flag into the HTML.

[0558] 5. Server-side includes for building documents out of country and language-specific components.

[0559] Each of these is described in detail in the following sections.

[0560] 3.6.3.1 WPReplace

[0561] The WPReplace function replaces a string with its translation.

[0562] The string to be replaced and the currently selected language are used as search keys within a TermDB. The TermDB is accessed and returns the translation of the string in the specified language.

[0563] The WPReplace function is implemented with two tags:

[0564] <!--WPReplaceBegin-->

[0565] <!--WPReplaceEnd-->

[0566] The string to be replaced is enclosed between the tags:

[0567] <!--WPReplaceBegin--> String to be replaced

[0568] <!--WPReplaceEnd-->

[0569] The string must be in the primary language of the TermDB (see Section 3.6.2, “TermDBs (tm)”).

[0570] For example, if a TermDB contained these entries: :: english hello french bonjour spanish hola then, this HTML code <!--WPReplaceBegin-->hello<!--WPReplaceEnd--> would produce  bonjour if the current language were French, and  hola if the current language were Spanish.

[0571] Please note the following:

[0572] 1. If the string is not found in the TermDB, it is not replaced.

[0573] 2. The WPReplace commands are removed after replacement.

[0574] Please see the sample file ‘contact.html’ included with this release for an example of WPReplace.

[0575] Please see Section 4.2.3, “outbound:: Enabling the Output Manager,” for information on how to specify TermDBs.

[0576] 3.6.3.2 WPSort

[0577] The WPSort function sorts a list of items according to the sort rules for the current language

[0578] NOTE: this is restricted in the current release. Please see Section 1.3, “Known Bugs and Limitations of This Release.”

[0579] The text to be sorted is divided into a series of lines, each of which contains a key.

[0580] Line 1 (sort key=‘box’): <................box..........>

[0581] Line 2 (sort key=‘ball’): <..................ball.........>

[0582] Line 3 (sort key=‘car’): <..................car..........>

[0583] After sorting, the lines will be arranged such that the keys will be in the correct sort order.

[0584] Line 1 (sort key=‘ball’): <..................ball.........>

[0585] Line 2 (sort key=‘box’): <.................box..........>

[0586] Line 3 (sort key=‘car’): <.................car..........>

[0587] The WPSort function is implemented with five tags:

[0588] <!--WPSortBegin-->

[0589] <!--WPSortEnd-->

[0590] <!--WPSortFieldBegin-->

[0591] <!--WPSortFieldEnd-->

[0592] <!--WPSortLineEnd-->

[0593] <!--WPSortBegin--> and <!--WPSortEnd--> surround the entire block of text to be sorted.

[0594] <!--WPSortFieldBegin--> and <!--WPSortFieldEnd--> surround the sort key on each line.

[0595] <!--WPSortLineEnd--> delimits adjacent lines.

[0596] NOTE: The first line must start with <!--WPSortBegin--> and the last line must end with <!--WPSortEnd-->.

[0597] WPReplace tags can be included within a sort field, and modify a sort key, if desired.

[0598] In the above example, the HTML would be coded as

[0599] <!--WPSortBegin-->

[0600] <..........<!--WPSortFieldBegin-->box

[0601] <!--WPSortFieldEnd-->......><!--WPSortLineEnd-->

[0602] <..........<!--WPSortFieldBegin-->ball

[0603] <!--WPSortFieldEnd-->......><!--WPSortLineEnd-->

[0604] <!--WPSortFieldBegin-->car

[0605] <!--WPSortFieldEnd-->......>

[0606] <!--WPSortEnd-->

[0607] WPSort can be used to sort a list of languages or countries in local-language order.

[0608] For example, consider this bulleted list of languages:

[0609] <!--WPSortBegin-->

[0610] <LI><A HREF=“WPCommand?language=english”>

[0611] <!--WPSortFieldBegin-->

[0612] <!--WPReplaceBegin-->English<!--WPReplaceEnd-->

[0613] <!--WPSortFieldEnd--></A>[English]

[0614] <!--WPSortLineEnd-->

[0615] <LI><A HREF=“WPCommand?language=french”>

[0616] <!--WPSortFieldBegin-->

[0617] <!--WPReplaceBegin-->French<!--WPReplaceEnd-->

[0618] <!--WPSortFieldEnd--></A> [French]

[0619] <!--WPSortLineEnd-->

[0620] <LI><A HREF=“WPCommand?ianguage=german”>

[0621] <!--WPSortFieldBegin-->

[0622] <!--WPReplaceBegin-->German<!--WPReplaceEnd-->

[0623] <!--WPSortFieldEnd--></A> [German]

[0624] <!--WPSortEnd-->

[0625] This code will allow the list items to be sorted in the correct order, according to the current language.

[0626] In the above example, the WPReplace tags are processed first, replacing the words “English”, “French”, and “German” with their translations. The translations will then be used as the sort keys.

[0627] All WPSort tags are removed before sending the result to the browser.

[0628] 3.6.3.3 WPCommands

[0629] WPCommands are special WebPlexer commands included in a document's HTML. They allow WebPlexer to manage country and language selection within a document.

[0630] WPCommands are coded as hypertext links in a document. When a link is clicked, the WPCommand is sent to WebPlexer in the request URL.

[0631] When WebPlexer receives the WPCommand, it performs some function and returns the result to the browser.

[0632] WPCommands have the form:

[0633] WPCommand?<command>=<arg>

[0634] where <command> is one of

[0635] 1. link

[0636] 2. country

[0637] 3. language

[0638] and <arg> is a function of <command>.

[0639] Each of these commands is described in more detail in the following sections, See also Section 3.3.5, “Manual Language Selection,” for a discussion of how WPCommands are used within the HTML.

[0640] Link

[0641] WPCommand?link=<link_target>

[0642] The link command makes a hypertext link to the URL specified by <link_target>. This command has the side effect of notifying WebPlexer that a hypertext link was executed. This information is used to save the location where the browser came from, so it can return after country or language selection.

[0643] When WebPlexer receives a link notification, it saves the current value of the referer URL in the http request for this session. After a change country or change language command is executed (see next sections), the saved referer URL is restored and the browser returns to the page from where the link was issued.

[0644] The link command is used when the change country or change language function is implemented on a separate page. This allows the browser to return to the originating page once the new country or language is selected. Please see Section 3.3.6.2, “Using WPCommand?link,” for additional information.

[0645] An example of the link command is included in the sample documents included with this release. The change country and change language functions are implemented in the files ‘countsel.html’ and ‘langsel.html’, respectively. These pages are reached by issuing a WPCommand?link=<link_target> from the index and form pages.

[0646] Country

[0647] WPCommand?country=<new_country>

[0648] The country command changes the current country to <new_country>.

[0649] The current language may also change depending on the session state. (See Section 3.5.2, “Determine Language from Country”).

[0650] Language

[0651] WPCommand?language=<new_language>

[0652] The language command changes the current language to <new_language>.

[0653] 3.6.3.4 Custom Variables

[0654] WebPlexer's custom variables are special placeholders that can be included in HTML code. They are automatically replaced by current country and language information when the document is served to the browser.

[0655] Custom variables begin with ‘&’ and must always be enclosed within

[0656] <!--WPReplaceBegin--> and <!--WPReplaceEnd--> tags.

[0657] The next sections describe the custom variables supported in this release. Please see the sample files (e.g. contact.html) for examples of their use.

[0658] &country

[0659] &country is a placeholder for the translated name of the currently selected country.

[0660] The name of the country is translated into the currently selected language.

[0661] For example, if the current country were “United-States” and the current language were Spanish, this sequence

[0662] <!--WPReplaceBegin-->&country<!--WPReplaceEnd-->

[0663] would be converted to

[0664] Estados-Unidos.

[0665] &language

[0666] &language is a placeholder for the translated name of the currently selected language.

[0667] The name of the language is translated into the currently selected language. For example, if the current language were German, this sequence

[0668] <!--WPReplaceBegin-->&language<!--WPReplaceEnd-->

[0669] would be converted to

[0670] Deutsch.

[0671] &flag

[0672] &flag is a placeholder for the name of the gif file containing the flag of the currently selected country. The name is automatically prepended with ‘flag/’.

[0673] The WebPlexer release includes gif images of flags from the countries of the world.

[0674] For example, if the current country were Germany, this sequence

[0675] <img src=“../image/<!--WPReplaceBegin-->&flag

[0676] <!--WPReplaceEnd-->” height=30>

[0677] would be converted to

[0678] <img src=“../image/flags/Germany.gif” height=30>

[0679] 3.6.3.5 Server-Side Includes

[0680] An ordinary server-side include is an HTML tag which causes an external file to be included within an HTML document. The file is included when the document is served to the browser.

[0681] WebPlexer's server-side include extends this capability by making the decision of what file to include based on the current country, region, or language. This enables a document to be built dynamically out of country and language-specific components.

[0682] WebPlexer supports two kinds of server-side includes:

[0683] 1. Multi-country server-side includes (MCSSI)

[0684] 2. Multi-language server-side includes (MLSSI)

[0685] MCSSI permits locale-specific elements of a document to be included as a function of the current region or country.

[0686] MLSSI permits localized elements of a document to be included as a function of the current language.

[0687] Multi-Country Server-Side Includes (MCSSI)

[0688] The MCSSI feature provides the ability to dynamically insert country and regional-specific content into the HTML stream.

[0689] MCSSI is invoked when this construct:

[0690] <!--#WP_include_MCSSI “file_name”-->

[0691] is detected in an HTML document being served to the browser.

[0692] When WebPlexer detects this command, it will insert the file

[0693] <head_of_mcssi_directory>/<country or_region_directory>/<file name>

[0694] in-line into the HTML stream.

[0695] Where:

[0696] head_of_mcssi_directory is the top-level directory of the MCSSI area on the server and is defined in the WP_Config file (see Section 4.1, “WP_Config,” for more information) and country_or_region is determined dynamically according to the algorithm described in “Determining the country_or_region_directory.”

[0697] The file which is included by MCSSI can itself contain additional WebPlexer tags (such as WPReplace and Custom Variables, see Section 3.6.3.1, “WPReplace,” and Section 3.6.3.4, “Custom Variables”). It can also contain additional MCSSI and MLSSI includes (see “Multi-Language Server-Side Includes (MLSSI)”).

[0698] By supporting WebPlexer tags such as WPReplace within the included MCSSI file, regional-specific content can be further localized according to language. This feature allows considerable flexibility in serving specific content for a region or country where more than one language is spoken.

[0699] Please note that language-dependent content is normally not included in MCSSI files and that template tags (see Section 3.6.1.1, “Template Types”) such as WPReplace (see Section 3.6.3.1, “WPReplace”) or MLSSI (see “Multi-Language Server-Side Includes (MLSSI)”) should be used instead.

[0700] Language-dependent content means any static text that is present in the file. Including language-dependent content within an MCSSI file is not recommended since an MCSSI file is included based on the setting of the current country. In other words, MCSSI files should contain only country or regional-specific content and be independent of language.

[0701] For example, if the current country of the browser is Switzerland, the user might be viewing the site in either French or German. If an MCSSI file for Switzerland is included that contains static text in French, the language will be wrong if the browser is requesting German.

[0702] This problem can be easily solved by replacing the static text in the MCSSI file with template tags, either by

[0703] 1. Placing the translations of the static text in a TermDB, and using WPReplace tags in the MCSSI file, or

[0704] 2. Placing each language version of the text in a separate file and including it with a single MLSSI tag within the MCSSI file.

[0705] Determining the country_or_region_directory

[0706] The country_or_region_directory is determined dynamically from a combination of the following parameters:

[0707] the browser's currently selected country

[0708] the user-defined region in the WP_Regions file for the selected country

[0709] the WebPlexer default region for the selected country

[0710] where the file is located (i.e. whether it is in the primary, secondary, or tertiary directory as defined below).

[0711] The specific algorithm for determining the country_or_region_directory from the above information is as follows.

[0712] 1. The browser's current country is obtained. See Section 3.5, “Country and Language Management,” for information on how this is done.

[0713] 2. The WP_Regions file is consulted to determine if this country is contained within a user-defined region. See Section 4.9, “WP_Regions,” for a definition of the syntax of the WP_Regions file.

[0714] 3. If there is no user-defined region for this country, the WebPlexer pre-defined region is used instead. See Appendix D., “List of WebPlexer Default Regions,” for a list of pre-defined regions.

[0715] 4. WebPlexer will look in 3 locations for the target MCSSI file. These 3 locations are known as the primary, secondary, and tertiary MCSSI directories, respectively.

[0716] These directories are consulted in order, one at a time until the requested file is found. The directories are defined below.

[0717] a Primary:

[0718] <head_of_mcssi_directory>/<current country>/<mcssi_file>

[0719] Example:

[0720] Assume a statement of the form:

[0721] <!--#WP_include_MCSSI “xyz.html”-->

[0722] and

[0723] current country is Japan

[0724] head_of_mcssi_directory is <docroot_directory>/mcssi.

[0725] Then a primary search would look for the file in:

[0726] /usr/local/etc/httpd/htdocs/mcssi/Japan/xyz.html

[0727] b. Secondary:

[0728] If the file is not in the primary location, the secondary path will be checked:

[0729] <head_of_mcssi_directory>/<current_region>/<mcssi_file>

[0730] where current_region is either the user-defined or WebPlexer pre-defined (default) region for this country.

[0731] Example:

[0732] Assume a statement of the form:

[0733] <!--#WP_include_MCSSI “xyz.html”-->

[0734] and

[0735] current country is Japan

[0736] current region is Pacific-Rim

[0737] head_of_mcssi_directory is <docroot_directory>/mcssi.

[0738] Then a secondary search would look for the file in:

[0739] /usr/local/etc/httpd/htdocs/mcssi/Pacific-Rim/xyz.html

[0740] c. Tertiary:

[0741] If the file is not in the secondary location, the tertiary path will be checked:

[0742] <head_of_mcssi_directory>/<mcssi_file>

[0743] 5. If the mcssi_file is not found in either the primary, secondary, or tertiary locations, the file is considered to be “not found” and the following message will be injected into the HTML stream in place of the MCSSI directive:

[0744] [an error occurred while processing MCSSI directive]

[0745] Multi-Language Server-Side Includes (MLSSI)

[0746] MLSSI allows the Web site designer to further customize an HTML document according to language, more generically than what can be provided by the WPReplace tags (see Section 3.6.3.1, “WPReplace”).

[0747] Like MCSSI, MLSSI allows a file to be included in-line by referencing it within an HTML document. However, the path to the file is determined by the currently active language, rather than by country or region.

[0748] The referenced file is pre-translated and placed in each of the language directories referenced in the WP_Map file (see Section 4.2, “WP_Map,” for a description of the WP_Map file). When the HTML document is presented to the browser, the file included by MLSSI is retrieved from the directory corresponding to the currently active language and inserted in-line into the HTML stream. This allows a single HTML document to be easily customized by including components that are specific to the selected language of the browser.

[0749] MLSSI is invoked when this construct:

[0750] <!--#WP_include_MLSSI “file_name”-->

[0751] is detected in an HTML document being served to the browser.

[0752] When WebPlexer detects this command, it will insert the file

[0753] <language_directory>/<file_name>

[0754] in-line into the HTML stream.

[0755] Where:

[0756] language_directory is the directory specified in the WP_Map file and language is determined according to the rules outlined in Section 3.5, “Country and Language Management.”

[0757] The file which is included by MLSSI can itself contain additional WebPlexer tags and commands (such as WPReplace, see Section 3.6.3.1, “WPReplace”). It can also contain additional MLSSI and MCSSI includes.

[0758] If the MLSSI file_name is not found on the server, the following message will be injected into the HTML stream in place of the MLSSI directive:

[0759] [an error occurred while processing MCSSI directive]

[0760] 3.7 Multilingual Navigator (tm)

[0761] The Multilingual Navigator is a collection of WebPlexer-enhanced HTML code which can be used to easily provide language and country selection for any document on the Web site. It provides complete language and country selection without the need for CGI scripts or complex interlinked pages.

[0762] The Multilingual Navigator is easily customizable to meet the specific navigation needs of your site.

[0763] The Multilingual Navigator is included with this release in a file called ‘minav.html’. It is also included on the index.html and contact.html pages in the sample directory.

[0764] 3.8 Input Manager

[0765] WebPlexer's input manager allows forms-handling CGI scripts to be intercepted and user input extracted for later translation. It can be used to support the translation of customer feedback forms in a multilingual environment.

[0766] To use the input manager, the name of the CGI script to be intercepted is specified in WebPlexer's WP_Map file along with the location of a template file and an output (.prt—“pre-translated”) file.

[0767] There is one line at the end of the WP_Map file for each CGI script to be intercepted. The format of this line is:

[0768] inbound:: <cgi-name><template-file><.prt file>

[0769] Please see the sample WP_Map file included with this release for an example.

[0770] The template file tells the input manager which fields of the form should be extracted. When the CGI script is invoked, the input data from those fields is saved and appended to the output, or .prt (pre-translated) file. This file also contains the time stamp, current country and language, and domain of the requester.

[0771] 3.8.1 Template Definition

[0772] The input manager template file has the following format:

[0773] <FIELD_LIST>

[0774]

[0775] <field1>::L

[0776] <field2>::L

[0777] •

[0778] •

[0779] •

[0780] <fieldn>::L

[0781] <LIST_END>

[0782] where <FIELD_LIST> and <LIST_END> are required tokens and the remaining lines list the field names used in the HTML form. The ‘::L’ at the end of each line is required.

[0783] For example, if an input field in an HTML form were coded as:

[0784] <INPUT TYPE=“text” NAME=“phone” SIZE=40 VALUE=“”>

[0785] the matching line in the template file would be

[0786] phone::L

[0787] Please see the files ‘contact.html’ and ‘contact.tmpl’ included in the sample directory of this release for additional examples.

[0788] 3.8.2.prt File Description

[0789] The .prt file is the output file that contains data from the extracted fields specified in the template file.

[0790] Each entry of the file is preceded by the time stamp, current country and language, and host domain.

[0791] The .prt files can be queued by the console for later translation. Please see Section 3.10.10, “Maintaining Input Manager Database Files,” for more information.

[0792] 3.9 Document Manager

[0793] WebPlexer's document manager manages the selection of documents to serve based on the current country and language. It requires that documents be placed in parallel language directories off of the Web server's htdoc root. It also requires that the location of language directories be specified in the WP_Map file.

[0794] The following sections provide additional information.

[0795] 3.9.1 Arrangement of Documents on the Server

[0796] The document manager requires that translated documents be arranged in parallel language directories off of the Web server's htdoc root. Please see Section 3.3, “Language Selection,” for detailed information on how to arrange the document hierarchy for the document manager.

[0797] 3.9.2 SPAMM (Sparse Matrix Manager)

[0798] WebPlexer's exclusive document management feature known as “SPAMM” (Sparse Matrix Manager) provides an incremental approach to building a multilingual Web site.

[0799] SPAMM allows the site administrator to translate only a portion of documents on the site, and into only those languages that are most relevant.

[0800] SPAMM is a feature that makes it unnecessary to fully populate the site's language matrix completely with documents.

[0801] If the set of documents on a multilingual Web site is visualized as a matrix, with each row representing a language and each column representing a document, SPAMM eliminates the need to populate every cell of the matrix.

[0802] When a document is requested in a particular language, WebPlexer will go to that cell of the matrix and try to retrieve the corresponding document.

[0803] If the document is not there (i.e. it has not been translated into the requested language), WebPlexer will automatically retrieve it from the default language directory specified by the “default::” declaration in the WP_Map file for this top-level URL (see Section 4.2, “WP_Map,” for an explanation of how to set up the default language directory).

[0804] SPAMM is completely transparent in operation. It does not require any special set-up or configuration. It also works with MLSSI so that if an included file cannot be found in the current language directory, it will look in the default directory instead.

[0805] Please note that even when SPAMM fetches a document from the default directory, WebPlexer still maintains the correct settings of country and language.

[0806] This means that if a browser dicks on a link from within a document that was fetched from the default language directory (through SPAMM), WebPlexer will look for the new document in the currently active language directory, not in the default language directory.

[0807] 3.9.3 Specifying Language-to-Directory Mapping

[0808] The mapping of language to directory must be specified in the WP Map file so the document manager can locate documents in the correct language.

[0809] Please see Section 3.3.2.2, “Specifying the Language-to-Directory Map and Charset,” for detailed information on how to specify this mapping.

[0810] 3.9.4 Specifying Charsets

[0811] Please see Section 3.3.2.2, “Specifying the Language-to-Directory Map and Charset,” for detailed information on how to specify the charset used to encode a document. This information is used by the document manager.

[0812] 3.9.5 Using Multi-Country Server-Side Includes (MCSSI)

[0813] MCSSI allows an HTML document to be easily customized with country and regional-specific content using a highly modular, “building-block” approach. This reduces the number of individual files that need to be kept on the server, lowering the cost and time required to maintain the site.

[0814] One application of MCSSI is to insert a targeted, country-specific banner at the top of an HTML page. It can also be used to easily tailor a marketing message for a specific country or region. For example, a travel company could use this feature to publish different airfares to various countries or regions. Or, tour packages or travel information could be presented only to those countries or regions where it is relevant.

[0815] The following is a simple example of an HTML document that shows how MCSSI is used.

[0816] <HTML>

[0817] <BODY>

[0818] <!--WPReplaceBegin--> Welcome to the ABC Travel Site!

[0819] <!--WPReplaceEnd-->

[0820] <!--#WP_include_MCSSI “airfares.html”-->

[0821] </BODY>

[0822] </HTML>

[0823] When this document is processed, WebPlexer will first determine the current language and replace the string “Welcome to the ABC Travel Site” with its translation out of the TermDB. Please see Section 3.6.3.1, “WPReplace,” for a description of WPReplace tags and how the replacement is done. Note that this is not part of the MCSSI operation but is included to make the example a bit more realistic.

[0824] Next, WebPlexer will process the MCSSI statement as follows:

[0825] 1. The currently selected country is determined. Please see Section 3.5, “Country and Language Management,” for an explanation of how this is done.

[0826] 2. The appropriate region that this country belongs to is determined using user-defined regions from the WP_Regions file and/or WebPlexer predefined (default) regions. Please see Section 4.9, “WP_Regions,” and “Multi-Country Server-Side Includes (MCSSI),” for more information about how regions are used.

[0827] 3. Based on the analysis of step 2, the target file, “airfares.html”, is fetched from the appropriate directory on the server. Please see “Determining the country_or_region_directory,” for a description of how this directory is determined.

[0828] 4. The target file, “airfares.html” is inserted in-line into the HTML stream. Any WebPlexer tags (e.g. WPReplace) that are included within the file are subsequently processed.

[0829] Note that the included MCSSI file can contain additional WebPlexer tags, including MLSSI and WPReplace tags. This allows the MCSSI file to be further customized for the current language, by replacing strings with their translations using the TermDB.

[0830] MCSSI is very easy to use by following the steps given below.

[0831] 1. Determine which countries or regions are important for your site, based on the country-specific or regional-specific content you wish to serve to visitors to your site.

[0832] 2. Group countries together into those regions of interest and edit the WP_Regions file to identify those regions to WebPlexer. Please see Section 4.9, “WP_Regions,” for information on the syntax of the WP_Regions file.

[0833] 3. Create country and region directories on your server as shown below, and place in those directories, any country-specific or regional-specific parts of a document you wish to have managed by MCSSI.

[0834] a. Place country-specific content in these directories:

[0835] <head_of_mcssi_directory>/<country>/<mcssi_file>

[0836] where:

[0837] <head_of_mcssi_directory>

[0838] is the top-level directory of the MCSSI area on the server and is defined in the WP_Config file (see Section 4.1, “WP_Config,” for more information).

[0839] <country>

[0840] is the name of the desired country.

[0841] <mcssi_file>

[0842] is the target file to be included.

[0843] b. Place regional-specific content in these directories:

[0844] <head_of_mcssi_directory>/<region>/<mcssi_file>

[0845] where:

[0846] <head_of_mcssi_directory>

[0847] is the top-level directory of the MCSSI area on the server and is defined in the WP_Config file (see Section 4.1, “WP_Config,” for more information).

[0848] <region>

[0849] is the name of the desired region. This is either a user-defined region from the WP_Regions file, or a WebPlexer pre-defined region given in Appendix D., “List of WebPlexer Default Regions.”

[0850] <mcssi_file>

[0851] is the target file to be included.

[0852] c. Place generic content (all regions and countries) in this directory:

[0853] where:

[0854] <head_of_mcssi_directory>

[0855] is the top-level directory of the MCSSI area on the server and is defined in the WP_Config file (see Section 4.1, “WP_Config”).

[0856] <mcssi_file>

[0857] is the target file to be included.

[0858] 4. Include a statement in your HTML of the form:

[0859] <!--#WP_include_MCSSI “airfares.html”-->

[0860] where “airfares.html” is the name of the target MCSSI file.

[0861] 5. When WebPlexer detects the MCSSI include when processing the HTML, it will fetch the file from the appropriate directory (3a, b, or c from above—where ever it finds it first), and insert it in-line into the HTML stream.

[0862] 6. Any WPReplace or WebPlexer tags that are found in the inserted file will be resolved after the file is inserted.

[0863] Please note that language-dependent content is normally not included in MCSSI files and that template tags (see Section 3.6.1.1, “Template Types”) such as WPReplace (see Section 3.6.3.1, “WPReplace”) or MLSSI (see “Multi-Language Server-Side Includes (MLSSI)”) should be used instead.

[0864] Language-dependent content means any static text that is present in the file. Including language-dependent content within an MCSSI file is not recommended since an MCSSI file is included based on the setting of the current country. In other words, MCSSI files should contain only country or regional-specific content and be independent of language.

[0865] For example, if the current country of the browser is Switzerland, the user might be viewing the site in either French or German. If an MCSSI file for Switzerland is included that contains static text in French, the language will be wrong if the browser is requesting German.

[0866] This problem can be easily solved by replacing the static text in the MCSSI file with template tags, either by

[0867] 1. Placing the translations of the static text in a TermDB, and using WPReplace tags in the MCSSI file, or

[0868] 2. Placing each language version of the text in a separate file and including it with a single MLSSI tag within the MCSSI file.

[0869] 3.9.6 Using Multi-Language Server-Side Includes (MLSSI)

[0870] MLSSI is typically used to customize an HTML document by including HTML that might be too complex to be managed by WPReplace tags. For example, MLSSI can be used to include a language-specific heading at the top of a form constructed out of WPReplace tags.

[0871] Please see Section 3.6.3.1, “WPReplace,” for further information about WPReplace tags.

[0872] MLSSI also helps to separate the form of a Web site (the structure and layout of the site) from its content (the actual message to be displayed on the browser).

[0873] The design and layout of a multi-language site is usually very similar, and often invariant, across languages. MLSSI allows the language-dependent parts of the content to be isolated from the structural design making it easy to update the design of the site and have changes reflected automatically across all of the languages. Likewise, MLSSI allows language content to be easily updated and maintained without affecting the overall site design.

[0874] Another application of MLSSI is to include language-specific graphics or image maps within a template file.

[0875] For example, a form-based HTML document that is a pure template can be customized with a language-specific banner and graphic at the top of the file as follows:

[0876] <HTML>

[0877] <BODY>

[0878] <!--#WP_include_MLSSI “banner.html”-->

[0879] <INPUT NAME=“name”> <!--WPReplaceBegin-->name<!--WPReplaceEnd-->

[0880] <INPUT NAME=“address”> <!--WPReplaceBegin-->address<!--WPReplaceEnd-->

[0881] </BODY>

[0882] </HTML>

[0883] When this file is processed, the file “banner.html” will be fetched from the language directory specified in the WP_Map file (i.e. french/banner.html, german/banner.html, etc.)

[0884] The contents of the banner.html files might look something like:  french/banner.html:   <IMG  SRC=“images/french/banner.gif”   WIDTH=80HEIGHT=20> Bienvenue <br>  german/banner.html:   <IMG  SRC=“images/german/banner.gif”   WIDTH=100HEIGHT=20> Willkommen <br>  and so on.

[0885] Of course, the WPReplace strings (“name”, “address”) will also be replaced b y their translations from the TermDB during processing of the file. See Section 3.6.3.1, “WPReplace,” for a description of how this is done.

[0886] As can be seen, MLSSI can be used to separate out the language-specific components of an HTML document making it easier to maintain the collection. In the previous example, if the structure of the HTML form needed to change, it would only require changing the template file, and not any of the language-specific files on the site.

[0887] MLSSI is very easy to use by following the steps given below.

[0888] 1. Place any language-specific parts of a document you wish to have managed by MLSSI in the respective language directories specified in the WP_Map file.

[0889] 2. Include a statement in your HTML of the form:

[0890] <!--#WP_include_MLSSI “component.html”-->

[0891] where “component.html” is the name of the file created in step 1.

[0892] 3. When WebPlexer detects the MLSSI include when processing the HTML, it will fetch the file from the language directory, as defined in the WP_Map file, corresponding to the current language selection, and insert it in-line into the HTML stream.

[0893] 4. Any WPReplace or WebPlexer tags that are found in the inserted file will be resolved after the file is inserted.

[0894] 3.9.7 Using CGI Scripts

[0895] CGI scripts producing HTML output should be written to be as independent of language and country as possible. This means these scripts should use the HTML extensions provided by the Multilingual ToolKit. They should write out templates that do not contain language-specific or country-specific information. Having only one script to maintain means that changes can be made easily and efficiently.

[0896] When the HTML output of such a CGI script is presented to the browser, WebPlexer will fill in the template dynamically with current language and country information. Text that is marked-up with WPReplace tags will also be translated.

[0897] In order for WebPlexer to correctly process a CGI script, the filename of the script must be changed when it is referenced in an HTML document. The filename must not include the path to the cgi root, even though the script is actually located in that directory.

[0898] In addition, the cgi root must be specified in the WP_Config file (see Section 4.1.18, “cgiRoot”).

[0899] For example, suppose that the cgi root is “/cgi-bin”.

[0900] Normally, a reference to a CGI script called “script.cgi” would look like this:

[0901] <A HREF=“/cgi-bin/script.cgi”>CGI</A>

[0902] But with WebPlexer, the cgi root should be omitted:

[0903] <A HREF=“script.cgi”>CGI</A>

[0904] This will ensure correct country and language processing of the HTML.

[0905] 3.10 WebPlexer Console

[0906] 3.10.1 Setting the Console Port

[0907] 3.10.2 Setting the Console Password

[0908] 3.10.3 Invoking the Console

[0909] 3.10.4 Closing the Console

[0910] 3.10.5 Writing Console Templates

[0911] 3.10.6 Console Commands

[0912] 3.10.6.1 System Configuration

[0913] 3.10.6.2 URL Selection

[0914] 3.10.6.3 System Status

[0915] Status Annunciators

[0916] 3.10.6.4 Language Status

[0917] Status Annunciators

[0918] 3.10.6.5 Queue Status

[0919] 3.10.7 Translation Queues

[0920] 3.10.7.1 Enqueue

[0921] 3.10.7.2 Dequeue

[0922] 3.10.7.3 Maintaining the Translation Queues

[0923] 3.10.7.4 Initiating Off-line Translation Using qtrans

[0924] 3.10.8 Document Maintenance

[0925] 3.10.8.1 Including Document Types

[0926] 3.10.8.2 Including Specific Documents

[0927] 3.10.8.3 Excluding Documents

[0928] 3.10.9 Maintaining TermDBs

[0929] 3.10.10 Maintaining Input Manager Database Files

[0930] 3.10.11 Log Analysis

[0931] 3.10.11.1 Usage utility

[0932] 3.10.11.2 Visits utility

[0933] 3.11 Runtime Options

[0934] WebPlexer accepts a number of command line flags used for configuration and debugging. These are described below.

[0935] 3.11.1 Configuration Flags

[0936] -internetport port

[0937] -serverport port

[0938] -consoleport port

[0939] These flags override the InternetPort, ServerPort, and ConsolePort specified in the WP_Config file.

[0940] -alog file

[0941] -elog file

[0942] -ilog file

[0943] These flags override the AccessLog, ErrorLog, and InformationLog specified in the WP_Config file.

[0944] -c file

[0945] This flag specifies a configuration file to use other than the default WP_ConFIG.

[0946] -version

[0947] This flag displays the current version of WebPlexer and libraries.

[0948] -restart

[0949] This flag forces WebPlexer to go through a restart sequence.

[0950] 3.11.2 Debugging Flags

[0951] -v

[0952] -vv

[0953] -debug

[0954] These flags cause WebPlexer to send debugging and informational messages to stderr. They should not be used in normal operation as they will cause some amount of performance degradation. Type ./webplexer -h for more information.

[0955] -t file

[0956] This flag uses the specified file to activate WebPlexer's test mode. The test file contains a list of up to 64 domain suffixes that will be consecutively “spoofed” for each access.

[0957] For example, if the file contained:

[0958] fr de it

[0959] the first access would appear to come from France, the next from Germany, and the last from Italy, then the cycle would repeat. Depending on the access pattern, and the contents of the document being retrieved (e.g. if there are embedded graphics), it may be necessary to repeat the same suffix more than once in the file to achieve the desired result.

[0960] -nobg

[0961] This flag tells WebPlexer to run in the foreground and not to fork a child process on startup.

[0962] -noredirection

[0963] This is a debugging flag and should not be used in normal operation.

[0964] -nosigs

[0965] This disables WebPlexer's exception handling. Normally, WebPlexer notifies the client when an exception occurs (if possible).

[0966] -noforking

[0967] This is another debugging flag that forces requests to be handled by the parent process.

[0968] -h, -help

[0969] These flags list and describe the help options.

[0970] 4. Contents of WebPlexer Files

[0971] The following sections give detailed specifications of all WebPlexer external files.

[0972] 4.1 WP_Config

[0973] The WP_Config file contains site-specific information used to set up and configure WebPlexer.

[0974] The WP_Config file is similar in format to a “httpd.conf” file and consists of a series of key/value pairs, one per line.

[0975] A key is a non-blank string ending with one or more white spaces. Examples of keys are InternetPort and ServerPort.

[0976] A value is a parameter string and varies depending upon the key. Examples of values are the strings “80” and “logs/WPErrorLog”.

[0977] Keys are separated from values by one or more column delimiters (spaces or tabs). Any text on a line after a comment symbol (#) is ignored.

[0978] The key/values currently defined for WP_Config are listed in the sections below.

[0979] 4.1.1 InternetPort

[0980] Syntax:

[0981] InternetPort <port>

[0982] where <port> is the port on the Internet side that WebPlexer monitors for an http request. When WebPlexer is used in “production mode” (see Section 3.1.1.2, “Production Mode”), this value will be 80, the standard http port.

[0983] Example:

[0984] InternetPort 80

[0985] 4.1.2 ServerPort

[0986] Syntax:

[0987] ServerPort <port>

[0988] where <port> is the port used to communicate with the httpd server. It should be set to an unused port (e.g. 180) when WebPlexer is in “production mode” (see Section 3.1.1.2, “Production Mode”). It must match the port specified in the Web server's configuration file.

[0989] Example:

[0990] ServerPort 180

[0991] 4.1.3 ConsolePort

[0992] Syntax:

[0993] ConsolePort <port>

[0994] where <port> is the port used to communicate with the WebPlexer console.

[0995] Example:

[0996] ConsolePort 2800

[0997] 4.1.4 AccessLog

[0998] Syntax:

[0999] AccessLog <filename>

[1000] where <filename> is the name of WebPlexer's access log file. It can be relative to the WebPlexer directory or it can be a fully specified file name.

[1001] Example:

[1002] AccessLog logs/WPAccessLog

[1003] 4.1.5 ErrorLog

[1004] Syntax:

[1005] ErrorLog <filename>

[1006] where <filename> is the name of WebPlexer's error log file. It can be relative to the WebPlexer directory or it can be a fully specified file name.

[1007] Example:

[1008] ErrorLog logs/WPErrorLog

[1009] 4.1.6 InformationLog

[1010] Syntax:

[1011] InformationLog <filename>

[1012] where <filename> is the name of WebPlexer's information log file. It can be relative to the WebPlexer directory or it can be a fully specified file name.

[1013] Example:

[1014] InformationLog logs/WPInfoLog

[1015] 4.1.7 ServerName

[1016] Syntax:

[1017] ServerName <name>

[1018] where <name> is the DNS entry name of this server.

[1019] Example:

[1020] ServerName www.lai.com

[1021] 4.1.8 RemoteMaintenanceKey

[1022] Syntax:

[1023] RemoteMaintenanceKey <off|on>

[1024] This should be set to “off” in the current release.

[1025] 4.1.9 Console

[1026] Syntax:

[1027] Console <off|on>

[1028] Disables/enables the WebPlexer console.

[1029] 4.1.10 MasterLanguage

[1030] Syntax:

[1031] MasterLanguage <language>

[1032] Specifies the language to be used as the master or reference language for the console (i.e. documents in that language will be used as a reference when determining which languages are out of date).

[1033] Example:

[1034] MasterLanguage english

[1035] NOTE: The language must be one of those supported by WebPlexer (see Appendix B., “List of Available Languages”).

[1036] 4.1.11 ConsoleTextExtensions

[1037] Syntax:

[1038] ConsoleTextExtensions <ext1 ext2 . . . extN>

[1039] The extensions specified as extN indicate what filetypes will be under console maintenance functions.

[1040] Example:

[1041] ConsoleTextExtensions .html .htm

[1042] 4.1.12 ConsoleFileInclude

[1043] Syntax:

[1044] ConsoleFileInclude <filel file2 . . . fileN>

[1045] Specifies individual files to be included under console maintenance functions beyond those included using the ConsoleTextExtensions directive.

[1046] Example:

[1047] ConsoleFileInclude faq.txt info.txt

[1048] 4.1.13 ConsoleFileExclude

[1049] Syntax:

[1050] ConsoleFileExclude <filel file2 . . . fileN>

[1051] Specifies individual files to be excluded from console maintenance among the set that was included using the ConsoleTextExtensions directive.

[1052] Example:

[1053] ConsoleFileExclude dummy.html empty.html

[1054] 4.1.14 Enqueue

[1055] Syntax:

[1056] Enqueue <directory>

[1057] Specifies the location of the console's enqueue directory.

[1058] NOTE: This directory is relative to the DocumentRoot (see below)

[1059] Example:

[1060] Enqueue enq

[1061] 4.1.15 Dequeue

[1062] Syntax:

[1063] Dequeue <directory>

[1064] Specifies the location of the console's dequeue directory.

[1065] NOTE: This directory is relative to the DocumentRoot (see below)

[1066] Example:

[1067] Dequeue deq

[1068] 4.1.16 Plugins

[1069] Plugins use the WebPlexer API. Information on Plugins is not available in this release. However, the WP_Config file should contain the following two lines:

[1070] PlugIns MLFWI Early 5

[1071] PlugIns MLFWO Late 5

[1072] 4.1.17 DocumentRoot

[1073] Syntax:

[1074] DocumentRoot <path>

[1075] where <path> is the path to the Web server's document root.

[1076] Example:

[1077] DocumentRoot/usr/local/etc/httpd/htdocs/

[1078] 4.1.18 cgiRbot

[1079] Syntax:

[1080] cgiRoot <path>

[1081] where <path> is the path to the Web server's cgi root, relative to the document root.

[1082] NOTE: <path> should not contain a trailing slash.

[1083] Example:

[1084] cgiRoot/cgi-bin

[1085] 4.1.19 MCSSIRoot

[1086] Syntax:

[1087] MCSSIRoot <path>

[1088] where <path> is the path to the head of MCSSI directory, relative to the document root.

[1089] Example:

[1090] MCSSIRoot/webplexer/MCSSI

[1091] 4.2 WP Map

[1092] The WP_Map file contains a list of top-level URLs that are subject to language selection. URLs are organized in URL groups, and as many groups as necessary can be specified. Each group contains the following information:

[1093] 1. The top-level URL of the group.

[1094] 2. The list of languages in the group and the names of the directories where the documents are located.

[1095] 3. The encodings in which the documents are represented (e.g. ISO-8859-1)

[1096] 4. Default directories in case the requested language is not found (usually English).

[1097] 5. TermDB(s) used when processing files for this group.

[1098] 6. Input Manager files (CGI script, templates, output files) for any forms contained within this group.

[1099] The format of the file is as shown below. Any text after a comment symbol (#) is ignored.

[1100] # URL Group 1 definition

[1101] URL::<path1> <path_type>

[1102] URL::<path2> <path_type>

[1103] URL::<pathN> <path_type>

[1104] <language>:<language_directory> <charset>

[1105] <language>:<language_directory> <charset>

[1106] •

[1107] •

[1108] • default:<default_language> <charset> # REQUIRED others:<others_language> <charset> # REQUIRED

[1109] •

[1110] •

[1111] outbound::‘*’<TermDB1.1>

[1112] outbound::‘*’<TermDB1.2>

[1113] •

[1114] outbound::‘*’TermDB1.N>

[1115] •

[1116] •

[1117] inbound::<cgi-script1.1> <template-file1.1> <.prt fie1.1>

[1118] inbound:: <cgi-script1.2> <template-file1.2> <.prt file1.2>

[1119] •

[1120] inbound::<cgi-script1.N> <template-file1.N> <.prt file1.N>

[1121] # URL Group 2 definition

[1122] URL::<path1> <path_type>

[1123] URL::<path2> <pathtype>

[1124] •

[1125] •

[1126] •

[1127] URL::<pathN> <path_type>

[1128] <language>:<language_directory> <charset>

[1129] <language>:<language_directory> <charset>

[1130] •

[1131] •

[1132] • default:<default_language> <charset> # REQUIRED others:<others_language> <charset> # REQUIRED

[1133] •

[1134] •

[1135] outbound::‘*’<TermDB2.1>

[1136] outbound::‘*’<TermDB2.2>

[1137] •

[1138] outbound::‘*’<TermDB2.N>

[1139] •

[1140] inbound:: <cgi-script2.1> <template-file2.1> <.prt file2.1>

[1141] inbound:: <cgi-script2.2> <template-file2.2> <.prt file2.2>

[1142] •

[1143] inbound:: <cgi-script2.N> <template-file2.N> <.prt file2.N>

[1144] # URL Group N definition

[1145] •

[1146] •

[1147] •

[1148] defaultCountry <country>

[1149] defaultLanguage <language>

[1150] 4.2.1 Specifying the Top-Level URL

[1151] Syntax:

[1152] URL::<path> <path_type>

[1153] where

[1154] <path>

[1155] is the directory path of the top-level URL below the htdoc root.

[1156] <path_type>

[1157] is either ‘d’ or ‘f’ depending on whether the path is a directory or a file.

[1158] Examples of valid paths and path_types are:

[1159] /d

[1160] /user1 d

[1161] /user1/docs d

[1162] /user1/docs/info.html f

[1163] You can specify as many paths as needed within a URL group.

[1164] A directory specification only matches a request for that directory. It will not match any requests for files in that directory.

[1165] For example,

[1166] URL::/user1 d

[1167] would match

[1168] GET http://www.lai.com/user1

[1169] GET http://www.lai.com/user1/

[1170] but would NOT match

[1171] GET http://www.lai.com/user1/info.html

[1172] GET http://www.lai.com/user1/index.html

[1173] These would require additional path specifications

[1174] URL::/user1/info.html f

[1175] URL::/user1/index.html f

[1176] 4.2.2 Specifying Language/Directory/Charset

[1177] Syntax:

[1178] <language>: <language_directory> <charset>

[1179] where

[1180] <language>

[1181] is the name of the language.

[1182] <language_directory>

[1183] is the name of the subdirectory containing documents of that language.

[1184] <charset>

[1185] is the encoding used for documents in that language (e.g. ISO-8859-1)

[1186] All the URLs in a group share a common language-to-directory map.

[1187] NOTE: <language> must be one of the available languages listed in Appendix B., “List of Available Languages.”

[1188] Examples of valid language to directory entries are:

[1189] french: french ISO-8859-1

[1190] english: eng docs ISO-8859-1

[1191] catalan: spanish_dir ISO-8859-1

[1192] japanese: japanese ISO-2022-JP

[1193] There are two reserved <language> names that have special meaning. One is “default” and the other is “others”. Both of these must be specified in the directory map of each URL group definition. They are described in more detail below.

[1194] 4.2.2.1 others:

[1195] Syntax:

[1196] others: <others_language> <charset>

[1197] The “others” language is used when the requested language is valid but does not exist on the server.

[1198] For example, if English, French, and Spanish documents exist on the server, but the requested language is Russian, WebPlexer will use the language defined as “others”.

[1199] It is usually the case that “others” is set to English.

[1200] Example:

[1201] others: english ISO-8859-1

[1202] 4.2.2.2 default:

[1203] Syntax:

[1204] default: <default_language><charset>

[1205] The “default” language is used when WebPlexer cannot determine the language of a request and none has been specified by the browser. This can happen when the country of origin cannot be determined because the hostname is unavailable or when the requester is behind a firewall.

[1206] It is usually the case that “default” is set to English.

[1207] Example:

[1208] default: english ISO-8859-1

[1209] 4.2.3 outbound:: Enabling the Output Manager

[1210] The output manager (i.e. Multilingual ToolKit) is enabled by specifying TermDB(s) in the WP_Map file for a given top-level URL.

[1211] All documents containing templates, tags, or other resources of the Multilingual ToolKit which require dynamic processing will be processed through the listed TermDBs for this URL group.

[1212] Syntax:

[1213] outbound::‘*’<TermDBN>

[1214] where

[1215] <TermDBN>

[1216] is the name of a TermDB to be applied for this top-level URL.

[1217] NOTE: The TermDB should be in the main WebPlexer directory.

[1218] Examples:

[1219] outbound::*master_termdb.html

[1220] outbound::*user_termdb.html

[1221] 4.2.4 inbound:: Enabling the Input Manager

[1222] To use the input manager, the name of the CGI script to be intercepted is specified in the WP_Map file along with the location of a template file and an output (.prt) file for this URL group.

[1223] A separate inbound statement is required for each CGI script.

[1224] NOTE: Each inbound statement must specify a different .prt file.

[1225] The template file tells the input manager which fields of the form should be extracted. When the CGI script is invoked, the input data from those fields is saved and appended to the output, or .prt (pre-translated) file. This file also contains the time stamp, current country and language, and domain of the requester.

[1226] Syntax:

[1227] inbound:: <cgi-scriptN> <template-fileN> <.prt fileN>

[1228] where

[1229] <cgi-scriptN>

[1230] is the name of the CGI script to be intercepted.

[1231] <template-fileN>

[1232] is the name of the file defining the fields to be captured. Please see Section 3.8.1, “Template Definition,” for a definition of this file.

[1233] <.prt fileN>

[1234] is the name of the output (pre-translated) file. Please see Section 3.8.2, “.prt File Description,” for a definition of this file.

[1235] Examples:

[1236] inbound:: form.cgi form.tmpl form.prt

[1237] inbound:: contact.cgi contact.tmpl contact.prt

[1238] Also see the sample WP_Map file included with this release.

[1239] 4.2.5 Setting Global Defaults

[1240] Global defaults are declared at the end of the WP_Map file and apply to all URL groups.

[1241] 4.2.5.1 defaultCountry

[1242] Syntax:

[1243] defaultCountry <country>

[1244] where

[1245] <country>

[1246] is the country to be used as WebPlexer's global default country.

[1247] NOTE: The country Must be a valid country from the country.list file.

[1248] Example:

[1249] defaultCountry United-States

[1250] 4.2.5.2 defaultLanguage

[1251] Syntax:

[1252] defaultLanguage <language>

[1253] where

[1254] <language>

[1255] is the language to be used as WebPlexer's global default language.

[1256] NOTE: The language must be a valid language from Appendix B., “List of Available Languages.”

[1257] Example:

[1258] defaultLanguage english

[1259] 4.3 Map Overrides

[1260] WebPlexer provides two files that can optionally force the selection of specific language(s) for certain hostnames or IP addresses when the top-level URL is accessed.

[1261] These files are HostNameMap and IPAddrMap, and are described below.

[1262] Both files are in WebPlexer's language subdirectory.

[1263] 4.3.1 HostName Map

[1264] Syntax:

[1265] <hostId1> <language_set1>

[1266] <hostID2> <language_set2>

[1267] •

[1268] •

[1269] •

[1270] <hostIDN> <language_setN>

[1271] where

[1272] <hostID>

[1273] is a hostname

[1274] <language_set>

[1275] is an ordered list of one or more languages of the form

[1276] {<language1>, <Language2>, . . . , <languageN>}

[1277] and languageN is preferred over languageN+1 for this hostID.

[1278] NOTE: The HostName Map file must be in WebPlexer's ‘language’ subdirectory.

[1279] Examples:

[1280] www.lai.com {english}

[1281] www.generichost.com {default}

[1282] 4.3.2 IPAddress Map

[1283] Syntax:

[1284] <ipID1> <language_set1>

[1285] <ipID2> <language_set2>

[1286] •

[1287] •

[1288] •

[1289] <ipIDN> <language_setN>

[1290] where

[1291] <ipID>

[1292] is an IP address

[1293] <language_set>

[1294] is an ordered list of one or more languages of the form

[1295] {<language1>, <language2>, . . , <languageN>}

[1296] and languageN is preferred over languageN+1 for this ipID.

[1297] NOTE: The IPAddress Map file must be in WebPlexer's ‘language’ subdirectory.

[1298] Example:

[1299] 192.42.172.9 {farsi, russian, english}

[1300] 4.4 Log Specifications

[1301] WebPlexer supports four log file types:

[1302] AccessLog

[1303] ErrorLog

[1304] InformationLog

[1305] UsageLog

[1306] The filenames corresponding to these log file types, except for the UsageLog, are defined in the WP_Config file (See Section 4.1.4, “AccessLog,” Section 4.1.6, “InformationLog,” and Section 4.1.5, “ErrorLog,” for additional information). The UsageLog is created and maintained by the usage script, described in Section 3.10.11.1, “Usage utility.”

[1307] 4.4.1 AccessLog

[1308] The AccessLog records information about each request received b y WebPlexer, such as date, time, and request type.

[1309] Each AccessLog entry conforms to the Common Logfile Format:

[1310] <remotehost> <rfc931> <authuser> <[date]> <“request”> <status><bytes>

[1311] where the fields are defined as follows

[1312] <remotehost>

[1313] Remote hostname (or IP address if DNS hostname is not available).

[1314] <rfc931>

[1315] The remote logname of the user.

[1316] <authuser>

[1317] The username by which the user has authenticated himself.

[1318] <[date]>

[1319] Date and time of the request.

[1320] <“request”>

[1321] The request line exactly as it came from the client.

[1322] <status>

[1323] The HTTP status code returned to the client.

[1324] <bytes>

[1325] The content-length of the document transferred.

[1326] Examples:

[1327] pp93.satcom.net - - [28/Jul/1996:23:37:23 -0700] “GET /cnv.post/info.html HTTP/1.0” 302 -

[1328] pp93.satcom.net - - [28/Jul/1996:23:37:24 -0700] “GET /cnv.post/english-american_United-States/info.html HTTP/1.0” 200 3372

[1329] pp93.satcom.net - - [28/Jul/1996:23:37:29 -0700] “GET /cnv.post/coming/flags/United-States.gif HTTP/1.0” 200 3594

[1330] NOTE: When WebPlexer is configured for “production mode” (see Section 3.1.1.2, “Production Mode”), WebPlexer's AccessLog should be used in place of the Web server's access log for auditing purposes. The Web server's access log will show all requests originating from WebPlexer.

[1331] 4.4.2 ErrorLog

[1332] The ErrorLog logs any errors that occurred during WebPlexer operation, or during the processing of a request.

[1333] The format of an ErrorLog entry is:

[1334] [date]<Error-Msg>

[1335] Examples:

[1336] [01/Aug/1996:21:02:23 -0700] Couldn't bind to socket for internet port 3080

[1337] 4.4.3 Information Log

[1338] The InformationLog records information about WebPlexer language and country selection. An entry is written whenever language or country changes, whether automatically or by manual selection.

[1339] The format of an InformationLog entry is:

[1340] <remotehost> 0<rfc931> <authuser> <[date]> <status-message>

[1341] where the fields are defined as follows

[1342] <remotehost>

[1343] Remote hostname (or IP address if DNS hostname is not available).

[1344] <rfc931>

[1345] The remote logname of the user.

[1346] <authuser>

[1347] The username by which the user has authenticated himself.

[1348] <[date]>

[1349] Date and time of the request.

[1350] <status-message>

[1351] Status information pertaining to country or language processing.

[1352] Examples of InformationLog entries are:

[1353] pc113.fiz-karlsruhe.de - - [01/Aug/1996:01:55:13 -0700] Country Selection:

[1354] pc113.fiz-karlsruhe.de --> Germany

[1355] pc113.fiz-karlsruhe.de - - [01/Aug/1996:01:55:13 -0700] Language Set:

[1356] pc113.fiz-karlsruhe.de --> {german}

[1357] pc113.fiz-karlsruhe.de - - [01/Aug/1996:01:55:13 -0700] Language Selection:

[1358] pc113.fiz-karlsruhe.de --> German

[1359] 4.4.4 Usage Log

[1360] The UsageLog contains a summary of country and language statistics. It is generated from the InformationLog using the usage log analysis tool. The UsageLog can be further processed using the visits log analysis tool. Please see Section 3.10.11, “Log Analysis,” for a description of WebPlexer's log analysis tools.

[1361] The format of a UsageLog entry is:

[1362] <[date]> <™Language:∫™Country:∫> <language|country> <remotehost>

[1363] where the fields are defined as follows

[1364] <[date]>

[1365] Date and time of the request.

[1366] <language>

[1367] New language of this request (i.e. an entry is created when a visitor enters the site or changes language once on the site).

[1368] <country>

[1369] New country of this request (i.e. an entry is created when a visitor enters the site or changes country once on the site).

[1370] Examples of UsageLog entries are:

[1371] [17/Oct/1996:13:40:11 -0700] Language: German www07.btx.dtag.de

[1372] [17/Oct/1996:14:09:57 -0700] Country: Argentina server1.sminter.com.ar

[1373] 4.5 CountryMap

[1374] The CountryMap contains a database of the world's languages and dialects. It is not human-readable.

[1375] 4.5.1 Creating a User-defined CountryMap

[1376] 4.6 country.list

[1377] The country.list file contains a list of available countries. It is identical to the list included in Appendix C., “List of Available Countries.”

[1378] 4.7 WP_LangCode

[1379] The WP_LangCode file contains the iso639 language map.

[1380] 4.8 WP_Languages

[1381] The WP_Languages file contains a list of available languages and dialects. It is identical to the list included in Appendix B., “List of Available Languages.”

[1382] 4.9 WP_Regions

[1383] The WP_Regions file consists of a list of names of user-defined regions, each one followed by a list of countries contained within that region.

[1384] Syntax:

[1385] # this is user-defined region1

[1386] <user-defined_region1>::

[1387] <country1>

[1388] <country2>

[1389] •

[1390] •

[1391] •

[1392] <countryN>

[1393] # this is user-defined region2

[1394] <user-defined_(—region)2>::

[1395] <country1>

[1396] <country2>

[1397] •

[1398] •

[1399] •

[1400] <countryM>

[1401] Blank lines as well as lines beginning with ‘#’ are ignored. Tabs at the beginning of a line are also ignored.

[1402] Example:

[1403] sales_region1::

[1404] Japan

[1405] China

[1406] Hong-Kong

[1407] sales_region2::

[1408] France

[1409] Great-Britain

[1410] Germany

[1411] Countries must be chosen from the list of valid countries for WebPlexer. See Appendix C., “List of Available Countries.”

[1412] The WP_Regions file contains only user-defined regions. WebPlexer also maintains a set of pre-defined (default) regions. These are listed in Appendix D., “List of WebPlexer Default Regions.”

[1413] “Determining the country_or_region_directory,” further describes the interaction and relationship between pre-defined (default) and user-defined regions.

[1414] 4.10 Master_termdb.html

[1415] The Master_termdb is included with the product and contains translations of the names of the world's countries and languages in the following languages and encodings: Language Encoding english ISO-8859-1 english-american ISO-8859-1 english-british ISO-8859-1 arabic CP1256 portuguese-brazilian ISO-8859-1 chinese-simplified GB2312 chinese-traditional BIG5 dutch ISO-8859-1 finnish ISO-8859-1 french ISO-8859-1 french-canadian ISO-8859-1 french-continental ISO-8859-1 german ISO-8859-1 greek CP1253 hebrew CP1255 indonesian ISO-8859-1 italian ISO-8859-1 japanese x-euc-jp kinyarwanda ISO-8859-1 kirundi ISO-8859-1 korean euc-kr portuguese-continental ISO-8859-1 russian CP1251 samoan ISO-8859-1 spanish ISO-8859-1 spanish-castilian ISO-8859-1 spanish-latin-american ISO-8859-1 swedish ISO-8859-1 thai CP874 vietnamese VIASCII

[1416] Although the invention is described herein with reference to the preferred embodiment, one skilled in the art will readily appreciate that other applications may be substituted for those set forth herein without departing from the spirit and scope of the present invention. Accordingly, the invention should only be limited by the claims included below. 

1. A process for managing, tracking, accounting and translating multilingual electronic content in a computer environment, comprising the steps of: detecting when a document, data stream, or non-text file in a master language has been updated; notifying a user which corresponding documents, data streams, or non-text files in other languages are out-of-date and require re-translation; analyzing all project components within a project in detail to determine project cost and resource requirements; wherein a project component is comprised of any of: a document, data stream, or non-text file to be translated; generating a project cost estimate prior to beginning the project; creating Work Packets, Job Tickets and a Project Schedule for the project; and sending the Project Schedule to the user for review and validation.
 2. The process of claim 1, further comprising the step of: adjusting the Project Schedule when there are changes in the availability of translation resources or when manual changes are made to the project by a user.
 3. The process of claim 1, wherein project cost varies with the type of document, data stream, or non-text file to be translated.
 4. An apparatus for managing, tracking, accounting and translating multilingual electronic content in a computer environment, comprising: a module for detecting when a document, data stream, or non-text file in the master language has been updated; a module for notifying a user which corresponding documents, data streams, or non-text files in other languages are out-of-date and require translation; a module for analyzing all project components within a project in detail to determine project cost and resource requirements; wherein a project component is comprised of any of: a document, data stream, or non-text file to be translated; a module for generating a project cost estimate prior to beginning the project; a module for creating Work Packets, Job Tickets and a Project Schedule for the project; and a module for sending the Project Schedule to the user for review and validation.
 5. The apparatus of claim 4, further comprising: a module for adjusting the Project Schedule when there are changes in the availability of translation resources, or when manual changes are made to the project by a user.
 6. The process of claim 4, wherein project cost varies with the type of document, data stream, or non-text file to be translated.
 7. A program storage medium readable by a computer, tangibly embodying a program of instructions executable by the computer to perform method steps for managing, tracking, accounting and translating multilingual electronic content in a computer environment, comprising the steps of: detecting when a document, data stream, or non-text file in the master language has been updated; notifying the user which corresponding documents, data streams, or non-text files in the other languages are out-of-date and require translation; analyzing all project components within a project in detail to determine project cost and resource requirements; wherein a project component is comprised of at least: a document, data stream, or non-text file to be translated; generating a project cost estimate prior to beginning the project; creating Work Packets, Job Tickets and a Project Schedule for the project; and sending the Project Schedule to the user for review and validation.
 8. The method of claim 7, further comprising the step of: adjusting the Project Schedule when there are changes in the availability of translation resources, or when manual changes are made to the project by a user.
 9. The process of claim 7, wherein project cost varies with the type of document, data stream, or non-text file to be translated. 